Abstract
This section discusses the Tablespace
class and
its public members.
Parent class. NdbDictionary
Child classes. None
Description.
The Tablespace
class models a MySQL Cluster
Disk Data tablespace, which contains the datafiles used to store
Cluster Disk Data. For an overview of Cluster Disk Data and their
characteristics, see CREATE TABLESPACE
Syntax, in the
MySQL Manual.
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 tablespaces; thus the
Tablespace
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 |
---|---|
Tablespace() |
Class constructor |
~Tablespace() |
Virtual destructor method |
getName() |
Gets the name of the tablespace |
getExtentSize() |
Gets the extent size used by the tablespace |
getAutoGrowSpecification() |
Used to obtain the AutoGrowSpecification structure associated with the tablespace |
getDefaultLogfileGroup() |
Gets the name of the tablespace's default logfile group |
getDefaultLogfileGroupId() |
Gets the ID of the tablespace's default logfile group |
getObjectStatus() |
Used to obtain the Object::Status of the
Tablespace instance for which it is
called |
getObjectVersion() |
Gets the object version of the Tablespace object for
which it is invoked |
getObjectId() |
Gets the object ID of a Tablespace instance |
setName() |
Sets the name for the tablespace |
setExtentSize() |
Sets the size of the extents used by the tablespace |
setAutoGrowSpecification() |
Used to set the auto-grow characteristics of the tablespace |
setDefaultLogfileGroup() |
Sets the tablespace's default logfile group |
For detailed descriptions, signatures, and examples of use for each
of these methods, see Section 2.3.22.1, “Tablespace
Methods”.
Types.
The Tablespace class defines no public types of its own; however,
two of its methods make use of the
AutoGrowSpecification
data structure.
Information about this structure can be found in
Section 2.3.26, “The AutoGrowSpecification
Structure”.
Class diagram.
This diagram shows all the available methods and enumerated types
of the Tablespace
class: