This method performs a table scan, using an
NdbRecord object to read out
NdbScanOperation* scanTable ( const NdbRecord* result_record, NdbOperation::LockMode lock_mode = NdbOperation::LM_Read, const unsigned char* result_mask = 0, Uint32 scan_flags = 0, Uint32 parallel = 0, Uint32 batch = 0 )
scanTable() method takes the following
lock_modein effect for the operation. See Section 18.104.22.168, “NdbOperation::LockMode”, for permitted values and other information.
result_maskpointer is optional. If it is present, only columns for which the corresponding bit (by attribute ID order) in
result_maskis set will be retrieved in the scan. The
result_maskis copied internally, so in contrast to
result_recordneed not be valid when
scan_flagscan be used to impose ordering and sorting conditions for scans. See Section 22.214.171.124, “NdbScanOperation::ScanFlag”, for a list of permitted values.
parallelargument is the desired parallelism, or
0for maximum parallelism (receiving rows from all fragments in parallel), which is the default.
batchdetermines whether batching is employed. The default is 0 (off).
A pointer to the
this scan. The operation can be checked for errors if necessary.