2.3.39 The Undofile Class

2.3.39.1 Undofile Constructor
2.3.39.2 Undofile::getFileNo()
2.3.39.3 Undofile::getLogfileGroup()
2.3.39.4 Undofile::getLogfileGroupId()
2.3.39.5 Undofile::getNode()
2.3.39.6 Undofile::getObjectId()
2.3.39.7 Undofile::getObjectStatus()
2.3.39.8 Undofile::getObjectVersion()
2.3.39.9 Undofile::getPath()
2.3.39.10 Undofile::getSize()
2.3.39.11 Undofile::setLogfileGroup()
2.3.39.12 Undofile::setNode()
2.3.39.13 Undofile::setPath()
2.3.39.14 Undofile::setSize()

Abstract

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.

Note

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:

MethodPurpose / 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.