MySQL 5.6.14 Source Code Document
|
Meta information about a database object (a table, index, etc) More...
#include <NdbDictionary.hpp>
Public Types | |
enum | Status { New, Changed, Retrieved, Invalid, Altered } |
enum | Type { TypeUndefined = 0, SystemTable = 1, UserTable = 2, UniqueHashIndex = 3, OrderedIndex = 6, HashIndexTrigger = 7, IndexTrigger = 8, SubscriptionTrigger = 9, ReadOnlyConstraint = 10, TableEvent = 11, Tablespace = 20, LogfileGroup = 21, Datafile = 22, Undofile = 23, ReorgTrigger = 19, HashMap = 24 } |
enum | State { StateUndefined = 0, StateOffline = 1, StateBuilding = 2, StateDropping = 3, StateOnline = 4, StateBackup = 5, StateBroken = 9 } |
enum | Store { StoreUndefined = 0, StoreNotLogged = 1, StorePermanent = 2 } |
enum | FragmentType { FragUndefined = 0, FragSingle = 1, FragAllSmall = 2, FragAllMedium = 3, FragAllLarge = 4, DistrKeyHash = 5, DistrKeyLin = 6, UserDefined = 7, HashMapPartition = 9 } |
Public Member Functions | |
virtual Status | getObjectStatus () const =0 |
virtual int | getObjectVersion () const =0 |
virtual int | getObjectId () const =0 |
Meta information about a database object (a table, index, etc)
Definition at line 73 of file NdbDictionary.hpp.
Type of fragmentation.
This parameter specifies how data in the table or index will be distributed among the db nodes in the cluster.
The bigger the table the more number of fragments should be used. Note that all replicas count as same "fragment".
For a table, default is FragAllMedium. For a unique hash index, default is taken from underlying table and cannot currently be changed.
Definition at line 161 of file NdbDictionary.hpp.
Object state
Definition at line 131 of file NdbDictionary.hpp.
Status of object
New |
The object only exist in memory and has not been created in the NDB Kernel |
Changed |
The object has been modified in memory and has to be commited in NDB Kernel for changes to take effect |
Retrieved |
The object exist and has been read into main memory from NDB Kernel |
Invalid |
The object has been invalidated and should not be used |
Altered |
Table has been altered in NDB kernel but is still valid for usage |
Definition at line 80 of file NdbDictionary.hpp.
Object store
StoreUndefined |
Undefined. |
StoreNotLogged |
Object or data deleted on system restart. |
StorePermanent |
Permanent. logged to disk. |
Definition at line 144 of file NdbDictionary.hpp.
Object type
TypeUndefined |
Undefined. |
SystemTable |
System table. |
UserTable |
User table (may be temporary) |
UniqueHashIndex |
Unique un-ordered hash index. |
OrderedIndex |
Non-unique ordered index. |
HashIndexTrigger |
Index maintenance, internal. |
IndexTrigger |
Index maintenance, internal. |
SubscriptionTrigger |
Backup or replication, internal. |
ReadOnlyConstraint |
Trigger, internal. |
TableEvent |
Table event. |
Tablespace | |
LogfileGroup |
Logfile group. |
Datafile | |
Undofile |
Definition at line 109 of file NdbDictionary.hpp.
|
pure virtual |
Get status of object
Implemented in NdbDictionary::HashMap, NdbDictionary::Undofile, NdbDictionary::Datafile, NdbDictionary::Tablespace, NdbDictionary::LogfileGroup, NdbDictionary::Event, NdbDictionary::Index, NdbDictionary::Table, and NdbDictionary::ObjectId.
|
pure virtual |
Get version of object
Implemented in NdbDictionary::HashMap, NdbDictionary::Undofile, NdbDictionary::Datafile, NdbDictionary::Tablespace, NdbDictionary::LogfileGroup, NdbDictionary::Event, NdbDictionary::Index, NdbDictionary::Table, and NdbDictionary::ObjectId.