Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual

2.3.4.9 Dictionary::createRecord()

Description.  This method is used to create an NdbRecord object for use in table or index scanning operations.

Signature.  The signature of this method depends on whether the resulting NdbRecord is to be used in table or index operations:

To create an NdbRecord for use in table operations, use the following:

NdbRecord* createRecord
    (
      const Table* table,
      const RecordSpecification* recSpec,
      Uint32 length,
      Uint32 elSize
    )

To create an NdbRecord for use in index operations, you can use either of the following:

NdbRecord* createRecord
    (
      const Index* index,
      const Table* table,
      const RecordSpecification* recSpec,
      Uint32 length,
      Uint32 elSize
    )

or

NdbRecord* createRecord
    (
      const Index* index,
      const RecordSpecification* recSpec,
      Uint32 length,
      Uint32 elSize
    )

Parameters.  Dictionary::createRecord() takes the following parameters:

Return value.  An NdbRecord for use in operations involving the given table or index.

Example.  See Section 2.3.27, “The NdbRecord Interface”.


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