Documentation Home
MySQL Cluster API Developer Guide
Download this Manual
PDF (US Ltr) - 5.2Mb
PDF (A4) - 5.1Mb
EPUB - 1.9Mb
HTML Download (TGZ) - 2.1Mb
HTML Download (Zip) - 2.2Mb


2.3.39 The Undofile Class

Abstract

The section discusses the Undofile class and its public methods.

Parent class.  NdbDictionary

Child classes.  None

Description.  The Undofile class models a MySQL 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.

MySQL 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 MySQL Cluster 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 MySQL Cluster 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 MySQL Cluster 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

For detailed descriptions, signatures, and examples of use for each of these methods, see Section 2.3.39.1, “Undofile Methods”.

Types.  The undo file 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.