Description.
Values of this type are the scan flags used with the
readTuples() method. More than one may be
used, in which case, they are OR'ed together
as the second argument to that method. See
Section 2.3.27.2.7, “NdbScanOperation::readTuples()”, for more
information.
Enumeration values. Possible values are shown, along with descriptions, in the following table:
| Value | Description |
|---|---|
SF_TupScan |
Scan in TUP order (that is, in the order of the rows in memory). Applies to table scans only. |
SF_DiskScan |
Scan in disk order (order of rows on disk). Applies to table scans only. |
SF_OrderBy |
Ordered index scan (ascending); rows returned from an index scan are sorted, and ordered on the index key. Scans in either ascending or descending order are affected by this flag, which causes the API to perform a merge-sort among the ordered scans of each fragment to obtain a single sorted result set. Notes:
|
SF_OrderByFull |
This is the same as SF_OrderBy, except that all key
columns are added automatically to the read bitmask. |
SF_Descending |
Causes an ordered index scan to be performed in descending order. |
SF_ReadRangeNo |
For index scans, when this flag is set,
NdbIndexScanOperation::get_range_no()
can be called to read back the range_no
defined in
NdbIndexScanOperation::setBound().
In addition, when this flag is set, and
SF_OrderBy or
SF_OrderByFull is also set, results
from ranges are returned in their entirety before any
results are returned from subsequent ranges. |
SF_MultiRange |
Indicates that this scan is part of a multirange scan; each range is scanned separately. |
SF_KeyInfo |
Requests KeyInfo to be sent back to the caller. This
enables the option to take over the row lock taken by the
scan, using
lockCurrentTuple(),
by making sure that the kernel sends back the information
needed to identify the row and the lock. This flag is
enabled by default for scans using
LM_Exclusive, but must be explicitly
specified to enable the taking over of
LM_Read locks. (See the
LockMode
documentation for more information.) |
