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::DictionaryBuffer Class Reference

The DictionaryBuffer holds a selection vector. More...

#include <duckdb.hpp>

Inheritance diagram for duckdb::DictionaryBuffer:
Collaboration diagram for duckdb::DictionaryBuffer:

Public Member Functions

 DictionaryBuffer (const SelectionVector &sel)
 DictionaryBuffer (buffer_ptr< SelectionData > data)
 DictionaryBuffer (idx_t count=STANDARD_VECTOR_SIZE)
const SelectionVector & GetSelVector () const
SelectionVector & GetSelVector ()
void SetSelVector (const SelectionVector &vector)
void SetDictionarySize (idx_t dict_size)
optional_idx GetDictionarySize () const
void SetDictionaryId (string id)
const string & GetDictionaryId () const
Public Member Functions inherited from duckdb::VectorBuffer
 VectorBuffer (VectorBufferType type)
 VectorBuffer (idx_t data_size)
 VectorBuffer (AllocatedData &&data_p)
data_ptr_t GetData ()
void SetData (AllocatedData &&new_data)
VectorAuxiliaryData * GetAuxiliaryData ()
void SetAuxiliaryData (unique_ptr< VectorAuxiliaryData > aux_data_p)
void MoveAuxiliaryData (VectorBuffer &source_buffer)
virtual optional_ptr< Allocator > GetAllocator () const
VectorBufferType GetBufferType () const
VectorAuxiliaryDataType GetAuxiliaryDataType () const
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const

Private Attributes

SelectionVector sel_vector
optional_idx dictionary_size
string dictionary_id
 A unique identifier for the dictionary that can be used to check if two dictionaries are equivalent.

Additional Inherited Members

Static Public Member Functions inherited from duckdb::VectorBuffer
static buffer_ptr< VectorBuffer > CreateStandardVector (PhysicalType type, idx_t capacity=STANDARD_VECTOR_SIZE)
static buffer_ptr< VectorBuffer > CreateConstantVector (PhysicalType type)
static buffer_ptr< VectorBuffer > CreateConstantVector (const LogicalType &logical_type)
static buffer_ptr< VectorBuffer > CreateStandardVector (const LogicalType &logical_type, idx_t capacity=STANDARD_VECTOR_SIZE)
Protected Attributes inherited from duckdb::VectorBuffer
VectorBufferType buffer_type
unique_ptr< VectorAuxiliaryData > aux_data
AllocatedData data

Detailed Description

The DictionaryBuffer holds a selection vector.

Constructor & Destructor Documentation

◆ DictionaryBuffer() [1/3]

duckdb::DictionaryBuffer::DictionaryBuffer ( const SelectionVector & sel)
inlineexplicit
10085 : VectorBuffer(VectorBufferType::DICTIONARY_BUFFER), sel_vector(sel) {
10086 }

◆ DictionaryBuffer() [2/3]

duckdb::DictionaryBuffer::DictionaryBuffer ( buffer_ptr< SelectionData > data)
inlineexplicit
10088 : VectorBuffer(VectorBufferType::DICTIONARY_BUFFER), sel_vector(std::move(data)) {
10089 }

◆ DictionaryBuffer() [3/3]

duckdb::DictionaryBuffer::DictionaryBuffer ( idx_t count = STANDARD_VECTOR_SIZE)
inlineexplicit
10091 : VectorBuffer(VectorBufferType::DICTIONARY_BUFFER), sel_vector(count) {
10092 }

Member Function Documentation

◆ GetSelVector() [1/2]

const SelectionVector & duckdb::DictionaryBuffer::GetSelVector ( ) const
inline
10095 {
10096 return sel_vector;
10097 }

◆ GetSelVector() [2/2]

SelectionVector & duckdb::DictionaryBuffer::GetSelVector ( )
inline
10098 {
10099 return sel_vector;
10100 }

◆ SetSelVector()

void duckdb::DictionaryBuffer::SetSelVector ( const SelectionVector & vector)
inline
10101 {
10102 this->sel_vector.Initialize(vector);
10103 }

◆ SetDictionarySize()

void duckdb::DictionaryBuffer::SetDictionarySize ( idx_t dict_size)
inline
10104 {
10105 dictionary_size = dict_size;
10106 }

◆ GetDictionarySize()

optional_idx duckdb::DictionaryBuffer::GetDictionarySize ( ) const
inline
10107 {
10108 return dictionary_size;
10109 }

◆ SetDictionaryId()

void duckdb::DictionaryBuffer::SetDictionaryId ( string id)
inline
10110 {
10111 dictionary_id = std::move(id);
10112 }
string dictionary_id
A unique identifier for the dictionary that can be used to check if two dictionaries are equivalent.
Definition duckdb.hpp:10121

◆ GetDictionaryId()

const string & duckdb::DictionaryBuffer::GetDictionaryId ( ) const
inline
10113 {
10114 return dictionary_id;
10115 }

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