Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual

2.3.19.10 NdbDictionary::getValuePtr()

Description.  Returns a pointer to the beginning of stored data specified by attribute ID, by looking up the offset of the column stored in the NdbRecord object and returning the sum of the row position and the offset.

Note

This method provides both row-const and non-row-const versions.

Signature. 

static const char* getValuePtr
    (
      const NdbRecord* record,
      const char* row,
      Uint32 attrId
    )
    
static char* getValuePtr
    (
      const NdbRecord* record,
      char* row,
      Uint32 attrId
    )

Parameters.  A pointer to an NdbRecord object describing the row format, a pointer to the start of the row data (const in the const version of this method), and the attribute ID of the column,

Return value.  A pointer to the start of the attribute in the row. This is null if the attribute is not part of the NdbRecord definition.


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