Description. This method is used to read tuples, using an ordered index.
virtual int readTuples ( LockMode mode = LM_Read, Uint32 flags = 0, Uint32 parallel = 0, Uint32 batch = 0 )
readTuples() method takes the three
parameters listed here:
modeused for the scan. This is a
LockModevalue; see Section 188.8.131.52, “NdbOperation::LockMode” for more information, including permitted values.
The number of fragments to scan in
0to specify the maximum automatically.
batchparameter specifies how many records will be returned to the client from the server by the next
NdbScanOperation::nextResult(true)method call. Use
0to specify the maximum automatically.Note
This parameter was ignored prior to MySQL 5.1.12, and the maximum was used.(Bug #20252)
0 indicates success;
-1 indicates failure.