MySQL 5.6.14 Source Code Document
|
Data dictionary class. More...
#include <NdbDictionary.hpp>
Classes | |
struct | AutoGrowSpecification |
class | Column |
Represents a column in an NDB Cluster table. More... | |
class | Datafile |
class | Dictionary |
Dictionary for defining and retreiving meta data. More... | |
class | Event |
Represents an Event in NDB Cluster. More... | |
class | HashMap |
Represents a HashMap in an NDB Cluster. More... | |
class | Index |
Represents an index in an NDB Cluster. More... | |
class | LogfileGroup |
class | NdbDataPrintFormat |
class | Object |
Meta information about a database object (a table, index, etc) More... | |
class | ObjectId |
class | OptimizeIndexHandle |
Represents a Index Optimization Handle passed as argument to optimizeIndex. More... | |
class | OptimizeTableHandle |
Represents a Table Optimization Handle Passed as argument to optimizeTable. More... | |
struct | RecordSpecification |
class | Table |
Represents a table in NDB Cluster. More... | |
class | Tablespace |
class | Undofile |
Public Types | |
enum | NdbRecordFlags { RecMysqldShrinkVarchar = 0x1, RecMysqldBitfield = 0x2 } |
enum | RecordType { TableAccess, IndexAccess } |
typedef Column | Attribute |
Static Public Member Functions | |
static RecordType | getRecordType (const NdbRecord *record) |
static const char * | getRecordTableName (const NdbRecord *record) |
static const char * | getRecordIndexName (const NdbRecord *record) |
static bool | getFirstAttrId (const NdbRecord *record, Uint32 &firstAttrId) |
static bool | getNextAttrId (const NdbRecord *record, Uint32 &attrId) |
static bool | getOffset (const NdbRecord *record, Uint32 attrId, Uint32 &offset) |
static bool | getNullBitOffset (const NdbRecord *record, Uint32 attrId, Uint32 &nullbit_byte_offset, Uint32 &nullbit_bit_in_byte) |
static const char * | getValuePtr (const NdbRecord *record, const char *row, Uint32 attrId) |
static char * | getValuePtr (const NdbRecord *record, char *row, Uint32 attrId) |
static bool | isNull (const NdbRecord *record, const char *row, Uint32 attrId) |
static int | setNull (const NdbRecord *record, char *row, Uint32 attrId, bool value) |
static Uint32 | getRecordRowLength (const NdbRecord *record) |
static const unsigned char * | getEmptyBitmask () |
static class NdbOut & | printFormattedValue (class NdbOut &out, const NdbDataPrintFormat &format, const NdbDictionary::Column *c, const void *val) |
Data dictionary class.
The preferred and supported way to create and drop tables and indexes in ndb is through the MySQL Server (see MySQL reference Manual, section MySQL Cluster).
Tables and indexes that are created directly through the NdbDictionary class can not be viewed from the MySQL Server. Dropping indexes directly via the NdbApi will cause inconsistencies if they were originally created from a MySQL Cluster.
This class supports schema data enquiries such as:
This class supports schema data definition such as:
NdbDictionary has several help (inner) classes to support this:
See ndbapi_simple_index.cpp for details of usage.
Definition at line 66 of file NdbDictionary.hpp.
typedef Column NdbDictionary::Attribute |
???
Definition at line 642 of file NdbDictionary.hpp.