Abstract
This section covers the Datafile
class.
Parent class. Object
Child classes. None
Description.
The Datafile
class models a Cluster Disk Data
datafile, which is used to store Disk Data table data.
In MySQL 5.1, only unindexed column data can be stored on disk. Indexes and indexes columns continue to be stored in memory as with previous versions of MySQL Cluster.
Versions of MySQL prior to 5.1 do not support Disk Data storage
and so do not support datafiles; thus the
Datafile
class is unavailable for NDB API
applications written against these MySQL versions.
Methods. The following table lists the public methods of this class and the purpose or use of each method:
Method | Purpose / Use |
---|---|
Datafile() |
Class constructor |
~Datafile() |
Destructor |
getPath() |
Gets the file system path to the datafile |
getSize() |
Gets the size of the datafile |
getFree() |
Gets the amount of free space in the datafile |
getNode() |
Gets the ID of the node where the datafile is located |
getTablespace() |
Gets the name of the tablespace to which the datafile belongs |
getTablespaceId() |
Gets the ID of the tablespace to which the datafile belongs |
getFileNo() |
Gets the number of the datafile in the tablespace |
getObjectStatus() |
Gets the datafile's object status |
getObjectVersion() |
Gets the datafile's object version |
getObjectId() |
Gets the datafile's object ID |
setPath() |
Sets the name and location of the datafile on the file system |
setSize() |
Sets the datafile's size |
setTablespace() |
Sets the tablespace to which the datafile belongs |
setNode() |
Sets the Cluster node where the datafile is to be located |
For detailed descriptions, signatures, and examples of use for each
of these methods, see Section 2.3.2.1, “Datafile
Methods”.
Types.
The Datafile
class defines no public types.
Class diagram.
This diagram shows all the available methods of the
Datafile
class: