NdbDictionary::Undofile Class Reference

#include <NdbDictionary.hpp>

Inheritance diagram for NdbDictionary::Undofile:

NdbDictionary::Object

List of all members.

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

 Undofile ()
 Undofile (const Undofile &)
virtual ~Undofile ()
void setPath (const char *path)
const char * getPath () const
void setSize (Uint64)
Uint64 getSize () const
void setLogfileGroup (const char *name)
void setLogfileGroup (const class LogfileGroup &)
const char * getLogfileGroup () const
void getLogfileGroupId (ObjectId *dst) const
void setNode (Uint32 nodeId)
Uint32 getNode () const
Uint32 getFileNo () const
virtual Object::Status getObjectStatus () const
virtual int getObjectVersion () const
virtual int getObjectId () const

Private Member Functions

 Undofile (NdbUndofileImpl &)

Private Attributes

class NdbUndofileImpl & m_impl

Friends

class NdbUndofileImpl


Member Enumeration Documentation

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.
DistrKeyHash 
DistrKeyLin 
UserDefined 
HashMapPartition 

enum NdbDictionary::Object::State [inherited]

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.

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::Store [inherited]

Object store

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

enum NdbDictionary::Object::Type [inherited]

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.
TableEvent  Table event.
Tablespace  Tablespace.
LogfileGroup  Logfile group.
Datafile  Datafile.
Undofile  Undofile.
ReorgTrigger 
HashMap 

Reimplemented in NdbDictionary::Index.


Constructor & Destructor Documentation

NdbDictionary::Undofile::Undofile (  ) 

NdbDictionary::Undofile::Undofile ( const Undofile  ) 

virtual NdbDictionary::Undofile::~Undofile (  )  [virtual]

NdbDictionary::Undofile::Undofile ( NdbUndofileImpl &   )  [private]


Member Function Documentation

Uint32 NdbDictionary::Undofile::getFileNo (  )  const

const char* NdbDictionary::Undofile::getLogfileGroup (  )  const

void NdbDictionary::Undofile::getLogfileGroupId ( ObjectId dst  )  const

Uint32 NdbDictionary::Undofile::getNode (  )  const

virtual int NdbDictionary::Undofile::getObjectId (  )  const [virtual]

Get object id

Implements NdbDictionary::Object.

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

Get object status

Implements NdbDictionary::Object.

virtual int NdbDictionary::Undofile::getObjectVersion (  )  const [virtual]

Get object version

Implements NdbDictionary::Object.

const char* NdbDictionary::Undofile::getPath (  )  const

Uint64 NdbDictionary::Undofile::getSize (  )  const

void NdbDictionary::Undofile::setLogfileGroup ( const class LogfileGroup  ) 

void NdbDictionary::Undofile::setLogfileGroup ( const char *  name  ) 

void NdbDictionary::Undofile::setNode ( Uint32  nodeId  ) 

void NdbDictionary::Undofile::setPath ( const char *  path  ) 

void NdbDictionary::Undofile::setSize ( Uint64   ) 


Friends And Related Function Documentation

friend class NdbUndofileImpl [friend]


Member Data Documentation

class NdbUndofileImpl& NdbDictionary::Undofile::m_impl [private]


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

MySQL Cluster Database Blog

Based on MySQL Cluster 7.0.10.

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.