NdbRecord is an interface which provides a
mapping to a full or a partial record stored in
NDB. In the latter case, it can be used in
conjunction with a bitmap to assist in access.
NdbRecord is available beginning with MySQL
Cluster NDB 6.2.3.
NdbRecord has no API methods of its own; rather
it acts as a handle that can be passed between various method calls
for use in many different sorts of operations, including these:
Unique key reads and primary key reads
Table scans and index scans
DML operations involving unique keys or primary keys
Operations involving index bounds
The same NdbRecord can be used simultaneously in
multiple operations, transactions, and threads.
An NdbRecord can be created in NDB API programs
by calling the createRecord() method of the
NdbDictionary class. In addition, a number of NDB
API methods have additional declarations in MySQL Cluster NDB 6.2.3
and later MySQL Cluster releases that allow the programmer to
leverage NdbRecord:
In addition, new members of NdbIndexScanOperation
and NdbDictionary are introduced in MySQL Cluster
NDB 6.2.3 for use with NdbRecord scans:
NdbIndexScanOperation::IndexBound is a
structure used to describe index scan bounds. See
Section 2.3.29, “The IndexBound Structure”.
NdbDictionary::RecordSpecification is a
structure used to specify columns and range offsets. See
Section 2.3.34, “The RecordSpecification Structure”.
Beginning with MySQL Cluster NDB 6.3.24 and MySQL Cluster NDB 7.0.4,
you can also use NdbRecord in conjunction with
the new Ndb::PartitionSpec structure to perform
scans that take advantage of partition pruning, by means of a new
variant of NdbIndexScanOperation::setBound(). For
more information, see
Section 2.3.13.2.5, “NdbIndexScanOperation::setBound”, and
Section 2.3.33, “The PartitionSpec Structure”.
