NdbDictionary::Object Class Reference

#include <NdbDictionary.hpp>

Inheritance diagram for NdbDictionary::Object:

NdbDictionary::Index NdbDictionary::Table

List of all members.


Detailed Description

Meta information about a database object (a table, index, etc).

Public Types

Public Member Functions


Member Enumeration Documentation

enum NdbDictionary::Object::Status

Status of object

Enumerator:
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

enum NdbDictionary::Object::Type

Object type

Enumerator:
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.

Reimplemented in NdbDictionary::Index.

enum NdbDictionary::Object::State

Object state

Enumerator:
StateUndefined  Undefined.
StateOffline  Offline, not usable.
StateBuilding  Building, not yet usable.
StateDropping  Offlining or dropping, not usable.
StateOnline  Online, usable.
StateBackup  Online, being backuped, usable.
StateBroken  Broken, should be dropped and re-created.

enum NdbDictionary::Object::Store

Object store

Enumerator:
StoreUndefined  Undefined.
StoreTemporary  Object or data deleted on system restart.
StorePermanent  Permanent. logged to disk.

enum NdbDictionary::Object::FragmentType

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.

Enumerator:
FragUndefined  Fragmentation type undefined or default.
FragSingle  Only one fragment.
FragAllSmall  One fragment per node, default.
FragAllMedium  two fragments per node
FragAllLarge  Four fragments per node.


Member Function Documentation

virtual Status NdbDictionary::Object::getObjectStatus (  )  const [pure virtual]

Get status of object

Implemented in NdbDictionary::Table, and NdbDictionary::Index.

virtual int NdbDictionary::Object::getObjectVersion (  )  const [pure virtual]

Get version of object

Implemented in NdbDictionary::Table, and NdbDictionary::Index.


Documentation generated Wed Jan 30 10:03:09 2008 from mysql source files.
© 2003-2004 MySQL AB