Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual

2.3.39 The Undofile Class


The section discusses the Undofile class and its public methods.

Parent class.  NdbDictionary

Child classes.  None

Description.  The Undofile class models an NDB Cluster Disk Data undofile, which stores data used for rolling back transactions.


Currently, only unindexed column data can be stored on disk. Indexes and indexes columns are always stored in memory.

NDB Cluster prior to MySQL 5.1 does not support Disk Data storage, and so does not support undo files; thus the Undofile class is unavailable for NDB API applications written against these older releases.

Methods.  The following table lists the public methods of this class and the purpose or use of each method:

Method Purpose / Use
Undofile() Class constructor
~Undofile() Virtual destructor
getFileNo() Removed in NDB 7.5.0 (Bug #47960, Bug #11756088)
getLogfileGroup() Gets the name of the log file group to which the undo file belongs
getLogfileGroupId() Gets the ID of the log file group to which the undo file belongs
getNode() Removed in NDB 7.5.0 (Bug #47960, Bug #11756088)
getObjectId() Gets the undo file's object ID
getObjectStatus() Gets the undo file's Status
getObjectVersion() Gets the undo file's object version
getPath() Gets the undo file's file system path
getSize() Gets the size of the undo file
setLogfileGroup() Sets the undo file's log file group using the name of the log file group or a reference to the corresponding LogfileGroup object
setNode() Removed in NDB 7.5.0 (Bug #47960, Bug #11756088)
setPath() Sets the file system path for the undo file
setSize() Sets the undo file's size

Types.  The Undofile class defines no public types.

Class diagram.  This diagram shows all the available methods of the Undofile class:

Figure 2.33 NdbDictionary::Object::Undofile

Public methods of the Undofile class.

User Comments
Sign Up Login You must be logged in to post a comment.