It describes an index associated to a DataSetType.
More...
#include <Index.h>
It describes an index associated to a DataSetType.
- See also
- DataSetType, PrimaryKey, ForeignKey, CheckConstraint, UniqueKey
Definition at line 54 of file Index.h.
te::da::Index::Index |
( |
DataSetType * |
parent = 0 , |
|
|
unsigned int |
id = 0 |
|
) |
| |
Constructor.
- Parameters
-
dt | The DataSetType associated to this index. |
id | The index identifier. |
- Postcondition
- If dt is provided, the index will belong to the given DataSetType.
-
By default the index type is BTreeType.
- Warning
- The identifier value (id) may be used by data source implementations. So, don't rely on its value!
Constructor.
- Parameters
-
name | The index name. |
t | The index type. |
dt | The DataSetType associated to this index. |
id | The index identifier. |
- Postcondition
- If dt is provided, the index will belong to the given DataSetType.
- Warning
- The identifier value (id) may be used by data source implementations. So, don't rely on its value!
Constructor.
- Parameters
-
name | The index name. |
t | The index type. |
properties | The properties that form the index. |
dt | The DataSetType associated to this index. |
id | The index identifier. |
- Precondition
- The properties must belong to the same DataSetType as the index.
- Postcondition
- If dt is provided, the index will belong to the given DataSetType.
- Warning
- The identifier value (id) may be used by data source implementations. So, don't rely on its value!
te::da::Index::Index |
( |
const Index & |
rhs | ) |
|
Copy constructor.
The new object will not have an associated DataSetType.
- Parameters
-
rhs | Right-hand-side instance. |
te::da::Index::~Index |
( |
| ) |
|
|
inline |
Destructor.
Definition at line 119 of file Index.h.
It adds the property to the list of properties of the index.
- Parameters
-
p | The property that will take part of the index. |
Definition at line 197 of file Index.h.
Index* te::da::Index::clone |
( |
| ) |
|
It returns a clone of the object.
The new object will not have an associated schema.
- Returns
- A clone of the object.
unsigned int te::da::Index::getId |
( |
| ) |
const |
|
inline |
It returns the index identifier.
- Returns
- A number that identifies the index.
- Warning
- The identifier value (id) may be used by data source implementations. So, don't rely on its value!
Definition at line 139 of file Index.h.
IndexType te::da::Index::getIndexType |
( |
| ) |
const |
|
inline |
It gets the index type.
- Returns
- The index type.
Definition at line 169 of file Index.h.
const std::string& te::da::Index::getName |
( |
| ) |
const |
|
inline |
It returns the index name.
- Returns
- The index name.
Definition at line 155 of file Index.h.
It returns the properties that take part of the index.
- Returns
- The properties that take part of the index.
Definition at line 183 of file Index.h.
It verifies if Property is associated to the index.
- Parameters
-
p | The Property to be verified. |
- Returns
- True if Property is associated to the index, false otherwise.
Index& te::da::Index::operator= |
( |
const Index & |
rhs | ) |
|
Assignment operator.
The new object will not have an assigned DataSetType.
- Parameters
-
rhs | Right-hand-side instance. |
- Returns
- A reference to this.
It changes the reference to property p to pp.
- Parameters
-
p | A property that takes part of the index. |
pp | The property that will take p place. |
- Note
- If the property p is not in the idx attribute list this method does nothing.
It sets the DataSetType associated to the index.
- Parameters
-
- Warning
- Take care when calling this method. If the index belongs to a DataSetType, remember to detach it from the DataSetType before calling this method.
Definition at line 214 of file Index.h.
void te::da::Index::setId |
( |
unsigned int |
id | ) |
|
|
inline |
It sets the DataSetType identifier.
- Parameters
-
- Warning
- The identifier value (id) may be used by data source implementations. So, don't rely on its value!
Definition at line 148 of file Index.h.
void te::da::Index::setIndexType |
( |
IndexType |
t | ) |
|
|
inline |
It sets the index type.
- Parameters
-
Definition at line 176 of file Index.h.
void te::da::Index::setName |
( |
const std::string & |
name | ) |
|
|
inline |
It sets the index name.
- Parameters
-
Definition at line 162 of file Index.h.
void te::da::Index::setProperties |
( |
const std::vector< te::dt::Property * > & |
properties | ) |
|
|
inline |
It sets the properties that take part of the index.
- Parameters
-
properties | The properties that take part of the index. |
Definition at line 190 of file Index.h.
unsigned int te::da::Index::m_id |
|
private |
An identification number for the index.
Definition at line 246 of file Index.h.
std::string te::da::Index::m_name |
|
private |
The index name.
Definition at line 249 of file Index.h.
The list of properties that form the index.
Definition at line 250 of file Index.h.
The index type.
Definition at line 247 of file Index.h.
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/src/terralib/dataaccess/dataset/Index.h