Documentation Home
MySQL Cluster API Developer Guide
Download this Manual
PDF (US Ltr) - 5.0Mb
PDF (A4) - 5.0Mb
EPUB - 1.9Mb
HTML Download (TGZ) - 1.9Mb
HTML Download (Zip) - 1.9Mb


2.3.15 The Key_part_ptr Structure

Abstract

This section describes the Key_part_ptr structure.

Parent class.  Ndb

Description.  Key_part_ptr provides a convenient way to define key-part data when starting transactions and computing hash values, by passing in pointers to distribution key values. When the distribution key has multiple parts, they should be passed as an array, with the last part's pointer set equal to NULL. See Section 2.3.16.1.34, “Ndb::startTransaction()”, and Section 2.3.16.1.3, “Ndb::computeHash()”, for more information about how this structure is used.

Attributes.  A Key_part_ptr has the attributes shown in the following table:

Attribute Type Initial Value Description
ptr const void* none Pointer to one or more distribution key values
len unsigned none The length of the pointer

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