2.3.3 The Datafile Class

2.3.3.1 Datafile Class Constructor
2.3.3.2 Datafile::getFileNo()
2.3.3.3 Datafile::getFree()
2.3.3.4 Datafile::getNode()
2.3.3.5 Datafile::getObjectId()
2.3.3.6 Datafile::getObjectStatus()
2.3.3.7 Datafile::getObjectVersion()
2.3.3.8 Datafile::getPath()
2.3.3.9 Datafile::getSize()
2.3.3.10 Datafile::getTablespace()
2.3.3.11 Datafile::getTablespaceId()
2.3.3.12 Datafile::setNode()
2.3.3.13 Datafile::setPath()
2.3.3.14 Datafile::setSize()
2.3.3.15 Datafile::setTablespace()

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.

Note

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

NDB Cluster prior to MySQL 5.1 did not support Disk Data storage and so did not support datafiles; thus the Datafile 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
Datafile()Class constructor
~Datafile()Destructor
getFileNo()Removed in NDB 7.5.0 (Bug #47960, Bug #11756088)
getFree()Gets the amount of free space in the datafile
getNode()Removed in NDB 7.5.0 (Bug #47960, Bug #11756088)
getObjectId()Gets the datafile's object ID
getObjectStatus()Gets the datafile's object status
getObjectVersion()Gets the datafile's object version
getPath()Gets the file system path to the datafile
getSize()Gets the size of the datafile
getTablespace()Gets the name of the tablespace to which the datafile belongs
getTablespaceId()Gets the ID of the tablespace to which the datafile belongs
setNode()Removed in NDB 7.5.0 (Bug #47960, Bug #11756088)
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

Types.  The Datafile class defines no public types.

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

Figure 2.3 NdbDictionary::Object::Datafile

Public methods of the Datafile class.