Ndb::PartitionSpec Struct Reference

#include <Ndb.hpp>

List of all members.

Public Types

enum  SpecType { PS_NONE = 0, PS_USER_DEFINED = 1, PS_DISTR_KEY_PART_PTR = 2, PS_DISTR_KEY_RECORD = 3 }

Public Attributes

Uint32 type
union {
   struct {
      Uint32   partitionId
   }   UserDefined
   struct {
      const Key_part_ptr *   tableKeyParts
      void *   xfrmbuf
      Uint32   xfrmbuflen
   }   KeyPartPtr
   struct {
      const NdbRecord *   keyRecord
      const char *   keyRow
      void *   xfrmbuf
      Uint32   xfrmbuflen
   }   KeyRecord
}; 


Detailed Description

Structure for describing a table partition in terms of either

PS_NONE No partitioning info provided.

PS_USER_DEFINED A specific partition id for a table with user defined partitioning

PS_DISTR_KEY_PART_PTR An array of a table's distribution key values for a table with native partitioning.

PS_DISTR_KEY_RECORD A row in given NdbRecord format containing a natively partitioned table's distribution key values


Member Enumeration Documentation

Enumerator:
PS_NONE 
PS_USER_DEFINED 
PS_DISTR_KEY_PART_PTR 
PS_DISTR_KEY_RECORD 


Member Data Documentation

union { ... }


The documentation for this struct was generated from the following file:

MySQL Cluster Database Blog

Based on MySQL Cluster 7.0.7.

This page is for information only and is not maintained by MySQL or Sun Microsystems - use at your own risk. For an upto date view of the API refer to the header files included with your MySQL Cluster distribution or check the MySQL Cluster API Developer Guide.