MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Ndb::PartitionSpec Struct Reference

#include <Ndb.hpp>

Collaboration diagram for Ndb::PartitionSpec:

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

Definition at line 1379 of file Ndb.hpp.


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