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.
Loading...
Searching...
No Matches
duckdb::UnboundIndex Class Referencefinal
Inheritance diagram for duckdb::UnboundIndex:
Collaboration diagram for duckdb::UnboundIndex:

Public Member Functions

 UnboundIndex (unique_ptr< CreateInfo > create_info, IndexStorageInfo storage_info, TableIOManager &table_io_manager, AttachedDatabase &db)
 
bool IsBound () const override
 Returns true if the index is a bound index, and false otherwise.
 
const string & GetIndexType () const override
 The index type (ART, B+-tree, Skip-List, ...)
 
const string & GetIndexName () const override
 The name of the index.
 
IndexConstraintType GetConstraintType () const override
 The index constraint type.
 
const CreateIndexInfoGetCreateInfo () const
 
const IndexStorageInfoGetStorageInfo () const
 
const vector< unique_ptr< ParsedExpression > > & GetParsedExpressions () const
 
const string & GetTableName () const
 
void CommitDrop () override
 
void BufferChunk (DataChunk &index_column_chunk, Vector &row_ids, const vector< StorageIndex > &mapped_column_ids_p, BufferedIndexReplay replay_type)
 
bool HasBufferedReplays () const
 
BufferedIndexReplaysGetBufferedReplays ()
 
const vector< StorageIndex > & GetMappedColumnIds () const
 
- Public Member Functions inherited from duckdb::Index
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
 
template<class TARGET >
TARGETCast ()
 
template<class TARGET >
const TARGETCast () const
 

Private Attributes

unique_ptr< CreateInfocreate_info
 The CreateInfo of the index.
 
IndexStorageInfo storage_info
 The serialized storage information of the index.
 
BufferedIndexReplays buffered_replays
 Buffered for index operations during WAL replay. They are replayed upon index binding.
 
vector< StorageIndexmapped_column_ids
 

Additional Inherited Members

- Public Attributes inherited from duckdb::Index
TableIOManagertable_io_manager
 Associated table io manager.
 
AttachedDatabasedb
 Attached database instance.
 
- Protected Member Functions inherited from duckdb::Index
 Index (const vector< column_t > &column_ids, TableIOManager &table_io_manager, AttachedDatabase &db)
 
- Protected Attributes inherited from duckdb::Index
vector< column_tcolumn_ids
 
unordered_set< column_tcolumn_id_set
 Unordered set of column_ids used by the Index.
 

Member Function Documentation

◆ IsBound()

bool duckdb::UnboundIndex::IsBound ( ) const
inlineoverridevirtual

Returns true if the index is a bound index, and false otherwise.

Implements duckdb::Index.

49918 {
49919 return false;
49920 }

◆ GetIndexType()

const string & duckdb::UnboundIndex::GetIndexType ( ) const
inlineoverridevirtual

The index type (ART, B+-tree, Skip-List, ...)

Implements duckdb::Index.

49921 {
49922 return GetCreateInfo().index_type;
49923 }

◆ GetIndexName()

const string & duckdb::UnboundIndex::GetIndexName ( ) const
inlineoverridevirtual

The name of the index.

Implements duckdb::Index.

49924 {
49925 return GetCreateInfo().index_name;
49926 }

◆ GetConstraintType()

IndexConstraintType duckdb::UnboundIndex::GetConstraintType ( ) const
inlineoverridevirtual

The index constraint type.

Implements duckdb::Index.

49927 {
49928 return GetCreateInfo().constraint_type;
49929 }

◆ GetCreateInfo()

const CreateIndexInfo & duckdb::UnboundIndex::GetCreateInfo ( ) const
inline
49930 {
49931 return create_info->Cast<CreateIndexInfo>();
49932 }
unique_ptr< CreateInfo > create_info
The CreateInfo of the index.
Definition duckdb.hpp:49900

◆ GetStorageInfo()

const IndexStorageInfo & duckdb::UnboundIndex::GetStorageInfo ( ) const
inline
49933 {
49934 return storage_info;
49935 }
IndexStorageInfo storage_info
The serialized storage information of the index.
Definition duckdb.hpp:49902

◆ GetParsedExpressions()

const vector< unique_ptr< ParsedExpression > > & duckdb::UnboundIndex::GetParsedExpressions ( ) const
inline
49936 {
49937 return GetCreateInfo().parsed_expressions;
49938 }

◆ GetTableName()

const string & duckdb::UnboundIndex::GetTableName ( ) const
inline
49939 {
49940 return GetCreateInfo().table;
49941 }

◆ CommitDrop()

void duckdb::UnboundIndex::CommitDrop ( )
overridevirtual

Implements duckdb::Index.

◆ BufferChunk()

void duckdb::UnboundIndex::BufferChunk ( DataChunk index_column_chunk,
Vector row_ids,
const vector< StorageIndex > &  mapped_column_ids_p,
BufferedIndexReplay  replay_type 
)

Buffer Index delete or insert (replay_type) data chunk. See note above on mapped_column_ids, this function assumes that index_column_chunk maps into mapped_column_ids_p to get the physical column index for each Indexed column in the chunk.

◆ HasBufferedReplays()

bool duckdb::UnboundIndex::HasBufferedReplays ( ) const
inline
49950 {
49951 return buffered_replays.HasBufferedReplays();
49952 }
BufferedIndexReplays buffered_replays
Buffered for index operations during WAL replay. They are replayed upon index binding.
Definition duckdb.hpp:49905

◆ GetBufferedReplays()

BufferedIndexReplays & duckdb::UnboundIndex::GetBufferedReplays ( )
inline
49954 {
49955 return buffered_replays;
49956 }

◆ GetMappedColumnIds()

const vector< StorageIndex > & duckdb::UnboundIndex::GetMappedColumnIds ( ) const
inline
49958 {
49959 return mapped_column_ids;
49960 }
vector< StorageIndex > mapped_column_ids
Definition duckdb.hpp:49911

Member Data Documentation

◆ mapped_column_ids

vector<StorageIndex> duckdb::UnboundIndex::mapped_column_ids
private

Maps the column IDs in the buffered replays to a physical table offset. For example, column [i] in a buffered ColumnDataCollection is the data for an Indexed column with physical table index mapped_column_ids[i]. This is in sorted order of physical column IDs.


The documentation for this class was generated from the following file: