Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual
PDF (US Ltr) - 4.4Mb
PDF (A4) - 4.4Mb
EPUB - 1.9Mb
HTML Download (TGZ) - 1.9Mb
HTML Download (Zip) - 1.9Mb


2.3.29 The NdbScanOperation Class

Abstract

This section describes the NdbScanOperation class and its class members.

Parent class.  NdbOperation

Child classes.  NdbIndexScanOperation

Description.  The NdbScanOperation class represents a scanning operation used in a transaction. This class inherits from NdbOperation.

Methods.  The following table lists the public methods of this class and the purpose or use of each method:

Method Purpose / Use
close() Closes the scan
deleteCurrentTuple() Deletes the current tuple
lockCurrentTuple() Locks the current tuple
nextResult() Gets the next tuple
getNdbTransaction() Gets the NdbTransaction object for this scan
getPruned() Used to find out whether this scan is pruned to a single partition
readTuples() Reads tuples
restart() Restarts the scan
updateCurrentTuple() Updates the current tuple
Note

This class has no public constructor. To create an instance of NdbScanOperation, it is necessary to use the NdbTransaction::getNdbScanOperation() method.

Types.  This class defines a single public type ScanFlag.

Class diagram.  This diagram shows all the available members of the NdbScanOperation class:

Figure 2.24 NdbScanOperation

Public members of the NdbScanOperation class.

For more information about the use of NdbScanOperation, see Section 1.3.2.3.3, “Scan Operations”, and Section 1.3.2.3.4, “Using Scans to Update or Delete Rows”.


User Comments
Sign Up Login You must be logged in to post a comment.