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::TableScanState Class Reference
Inheritance diagram for duckdb::TableScanState:
Collaboration diagram for duckdb::TableScanState:

Public Member Functions

void Initialize (vector< StorageIndex > column_ids, optional_ptr< ClientContext > context=nullptr, optional_ptr< TableFilterSet > table_filters=nullptr, optional_ptr< SampleOptions > table_sampling=nullptr)
const vector< StorageIndex > & GetColumnIds ()
ScanFilterInfo & GetFilterInfo ()
ScanSamplingInfo & GetSamplingInfo ()

Public Attributes

CollectionScanState table_state
 The underlying table scan state.
CollectionScanState local_state
 Transaction-local scan state.
TableScanOptions options
 Options for scanning.
shared_ptr< CheckpointLock > checkpoint_lock
 Shared lock over the checkpoint to prevent checkpoints while reading.
ScanFilterInfo filters
 Filter info.
ScanSamplingInfo sampling_info
 Sampling info.

Private Attributes

vector< StorageIndex > column_ids
 The column identifiers of the scan.

Constructor & Destructor Documentation

◆ TableScanState()

duckdb::TableScanState::TableScanState ( )
437329 : table_state(*this), local_state(*this) {
437330}
CollectionScanState local_state
Transaction-local scan state.
Definition duckdb.cpp:75106
CollectionScanState table_state
The underlying table scan state.
Definition duckdb.cpp:75104

◆ ~TableScanState()

duckdb::TableScanState::~TableScanState ( )
437332 {
437333}

Member Function Documentation

◆ Initialize()

void duckdb::TableScanState::Initialize ( vector< StorageIndex > column_ids,
optional_ptr< ClientContext > context = nullptr,
optional_ptr< TableFilterSet > table_filters = nullptr,
optional_ptr< SampleOptions > table_sampling = nullptr )
437337 {
437338 this->column_ids = std::move(column_ids_p);
437339 if (table_filters) {
437340 filters.Initialize(*context, *table_filters, column_ids);
437341 }
437342 if (table_sampling) {
437343 sampling_info.do_system_sample = table_sampling->method == SampleMethod::SYSTEM_SAMPLE;
437344 sampling_info.sample_rate = table_sampling->sample_size.GetValue<double>() / 100.0;
437345 if (table_sampling->seed.IsValid()) {
437346 table_state.random.SetSeed(table_sampling->seed.GetIndex());
437347 }
437348 }
437349}
ScanFilterInfo filters
Filter info.
Definition duckdb.cpp:75112
vector< StorageIndex > column_ids
The column identifiers of the scan.
Definition duckdb.cpp:75129
ScanSamplingInfo sampling_info
Sampling info.
Definition duckdb.cpp:75114

◆ GetColumnIds()

const vector< StorageIndex > & duckdb::TableScanState::GetColumnIds ( )
437351 {
437352 D_ASSERT(!column_ids.empty());
437353 return column_ids;
437354}

◆ GetFilterInfo()

ScanFilterInfo & duckdb::TableScanState::GetFilterInfo ( )
437359 {
437360 return filters;
437361}

◆ GetSamplingInfo()

ScanSamplingInfo & duckdb::TableScanState::GetSamplingInfo ( )
437363 {
437364 return sampling_info;
437365}

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