![]() |
Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
|
The index is an abstract base class that serves as the basis for indexes. More...
#include <duckdb.hpp>


Public Member Functions | |
| virtual bool | IsBound () const =0 |
| Returns true if the index is a bound index, and false otherwise. | |
| virtual const string & | GetIndexType () const =0 |
| The index type (ART, B+-tree, Skip-List, ...) | |
| virtual const string & | GetIndexName () const =0 |
| The name of the index. | |
| virtual IndexConstraintType | GetConstraintType () const =0 |
| The index constraint type. | |
| bool | IsUnique () const |
| Returns unique flag. | |
| bool | IsPrimary () const |
| Returns primary key flag. | |
| bool | IsForeign () const |
| Returns foreign key flag. | |
| const vector< column_t > & | GetColumnIds () const |
| const unordered_set< column_t > & | GetColumnIdSet () const |
| virtual void | CommitDrop ()=0 |
| template<class TARGET > | |
| TARGET & | Cast () |
| template<class TARGET > | |
| const TARGET & | Cast () const |
Public Attributes | |
| TableIOManager & | table_io_manager |
| Associated table io manager. | |
| AttachedDatabase & | db |
| Attached database instance. | |
Protected Member Functions | |
| Index (const vector< column_t > &column_ids, TableIOManager &table_io_manager, AttachedDatabase &db) | |
Protected Attributes | |
| vector< column_t > | column_ids |
| unordered_set< column_t > | column_id_set |
| Unordered set of column_ids used by the Index. | |
The index is an abstract base class that serves as the basis for indexes.
|
pure virtual |
Returns true if the index is a bound index, and false otherwise.
Implemented in duckdb::UnboundIndex, and duckdb::BoundIndex.
The index type (ART, B+-tree, Skip-List, ...)
Implemented in duckdb::UnboundIndex, and duckdb::BoundIndex.
The name of the index.
Implemented in duckdb::UnboundIndex, and duckdb::BoundIndex.
|
pure virtual |
The index constraint type.
Implemented in duckdb::UnboundIndex, and duckdb::BoundIndex.

|
inline |
Returns unique flag.

|
inline |
Returns primary key flag.

|
inline |
Returns foreign key flag.

Implemented in duckdb::BoundIndex.
The physical column ids of the indexed columns. For example, given a table with the following columns: (a INT, gen AS (2 * a), b INT, c VARCHAR), an index on columns (a,c) would have physical column_ids [0,2] (since the virtual column is skipped in the physical representation). Also see comments in bound_index.hpp to see how these column IDs are used in the context of bound/unbound expressions. Note that these are the columns for this Index, not all Indexes on the table.