#include <NdbDictionary.hpp>
Represents type of index
Undefined | Undefined object type (initial value). |
UniqueHashIndex | Unique un-ordered hash index (only one currently supported) |
OrderedIndex | Non-unique ordered index. |
Reimplemented from NdbDictionary::Object.
NdbDictionary::Index::Index | ( | const char * | name = "" |
) |
Constructor
name | Name of index |
const char* NdbDictionary::Index::getName | ( | ) | const |
Get the name of an index
const char* NdbDictionary::Index::getTable | ( | ) | const |
Get the name of the table being indexed
unsigned NdbDictionary::Index::getNoOfColumns | ( | ) | const |
Get the number of columns in the index
const Column* NdbDictionary::Index::getColumn | ( | unsigned | no | ) | const |
Get a specific column in the index
Type NdbDictionary::Index::getType | ( | ) | const |
Get index type of the index
bool NdbDictionary::Index::getLogging | ( | ) | const |
Check if index is set to be stored on disk
Ordered index does not currently support logging.
virtual Object::Status NdbDictionary::Index::getObjectStatus | ( | ) | const [virtual] |
Get object status
Implements NdbDictionary::Object.
virtual int NdbDictionary::Index::getObjectVersion | ( | ) | const [virtual] |
Get object version
Implements NdbDictionary::Object.
int NdbDictionary::Index::setName | ( | const char * | name | ) |
Set the name of an index
int NdbDictionary::Index::setTable | ( | const char * | name | ) |
Define the name of the table to be indexed
int NdbDictionary::Index::addColumn | ( | const Column & | c | ) |
Add a column to the index definition Note that the order of columns will be in the order they are added (only matters for ordered indexes).
int NdbDictionary::Index::addColumnName | ( | const char * | name | ) |
Add a column name to the index definition Note that the order of indexes will be in the order they are added (only matters for ordered indexes).
int NdbDictionary::Index::addColumnNames | ( | unsigned | noOfNames, | |
const char ** | names | |||
) |
Add several column names to the index definition Note that the order of indexes will be in the order they are added (only matters for ordered indexes).
void NdbDictionary::Index::setType | ( | Type | type | ) |
Set index type of the index
void NdbDictionary::Index::setLogging | ( | bool | enable | ) |
Enable/Disable index storage on disk
enable | If enable is set to true, then logging becomes enabled |