The world's most popular open source database
Description.
This method is used to create an NdbRecord
object for use in table or index scanning operations. (See
Section 4.25, “The NdbRecord Interface”.)
Dctionary::createRecord() is available
beginning with MySQL Cluster NDB 6.2.3.
Signature.
To create an NdbRecord for use in table
operations:
NdbRecord* createRecord
(
const Table* table,
const RecordSpecification* recordSpec,
Uint32 length,
Uint32 elementSize
)
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* recordSpec,
Uint32 length,
Uint32 elementSize
)
or
NdbRecord* createRecord
(
const Index* index,
const RecordSpecification* recordSpec,
Uint32 length,
Uint32 elementSize
)
Parameters.
Dictionary::createRecord() takes the
following parameters:
If this NdbRecord is to be used with
an index, a pointer to the corresponding
Index object. If the
NdbRecord is to be used with a table,
this parameter is omitted. (See
Section 4.5, “The Index Class”.)
A pointer to a Table object
representing the table to be scanned. If the
Ndbrecord produced is to be used with
an index, then this optionally specifies the table
containing that index. (See
Section 4.21, “The Table Class”.)
A RecordSpecification used to
describe a column. (See
Section 4.30, “The RecordSpecification Structure”.
The length of the record.
The size of the elements making up this record.
Return Value.
An NdbRecord for use in operations
involving the given table or index.
Example.
See Section 4.25, “The NdbRecord Interface”.

