Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual

2.3.22 The NdbIndexOperation Class


This section describes the NdbIndexOperation class and its public methods.

Parent class.  NdbOperation

Child classes.  None

Description.  NdbIndexOperation represents an index operation for use in transactions. This class inherits from NdbOperation.

NdbIndexOperation can be used only with unique hash indexes; to work with ordered indexes, use NdbIndexScanOperation.


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

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

Table 2.40 NdbIndexOperation class methods and descriptions

Name Description
deleteTuple() Removes a tuple from a table
getIndex() Gets the index used by the operation
readTuple() Reads a tuple from a table
updateTuple() Updates an existing tuple in a table


Index operations are not permitted to insert tuples.

Types.  The NdbIndexOperation class defines no public types of its own.

For more information about the use of NdbIndexOperation, see Section, “Single-row operations”.