diff options
Diffstat (limited to 'ndb/include/ndbapi/NdbIndexOperation.hpp')
-rw-r--r-- | ndb/include/ndbapi/NdbIndexOperation.hpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/ndb/include/ndbapi/NdbIndexOperation.hpp b/ndb/include/ndbapi/NdbIndexOperation.hpp index 2d873c52e56..7612fe54d1b 100644 --- a/ndb/include/ndbapi/NdbIndexOperation.hpp +++ b/ndb/include/ndbapi/NdbIndexOperation.hpp @@ -56,6 +56,15 @@ public: * * @return 0 if successful otherwise -1. */ + int readTuple(LockMode); + + /** + * Define the NdbIndexOperation to be a standard operation of type readTuple. + * When calling NdbConnection::execute, this operation + * reads a tuple. + * + * @return 0 if successful otherwise -1. + */ int readTuple(); /** @@ -175,15 +184,15 @@ private: int executeCursor(int ProcessorId); // Overloaded methods from NdbCursorOperation - int indxInit(class NdbIndexImpl* anIndex, - class NdbTableImpl* aTable, + int indxInit(const class NdbIndexImpl* anIndex, + const class NdbTableImpl* aTable, NdbConnection* myConnection); int equal_impl(const class NdbColumnImpl*, const char* aValue, Uint32 len); int prepareSend(Uint32 TC_ConnectPtr, Uint64 TransactionId); // Private attributes - NdbIndexImpl* m_theIndex; + const NdbIndexImpl* m_theIndex; Uint32 m_theIndexDefined[NDB_MAX_ATTRIBUTES_IN_INDEX][3]; Uint32 m_theIndexLen; // Length of the index in words Uint32 m_theNoOfIndexDefined; // The number of index attributes |