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::FlushMoveState Struct Reference
Collaboration diagram for duckdb::FlushMoveState:

Public Member Functions

 FlushMoveState (TupleDataCollection &collection_p)
bool Scan ()

Public Attributes

TupleDataCollection & collection
TupleDataScanState scan_state
DataChunk groups
idx_t hash_col_idx
Vector hashes
Vector group_addresses
SelectionVector new_groups_sel

Constructor & Destructor Documentation

◆ FlushMoveState()

duckdb::FlushMoveState::FlushMoveState ( TupleDataCollection & collection_p)
inlineexplicit
146842 : collection(collection_p), hashes(LogicalType::HASH), group_addresses(LogicalType::POINTER),
146843 new_groups_sel(STANDARD_VECTOR_SIZE) {
146844 const auto &layout = collection.GetLayout();
146845 vector<column_t> column_ids;
146846 column_ids.reserve(layout.ColumnCount() - 1);
146847 for (idx_t col_idx = 0; col_idx < layout.ColumnCount() - 1; col_idx++) {
146848 column_ids.emplace_back(col_idx);
146849 }
146850 collection.InitializeScan(scan_state, column_ids, TupleDataPinProperties::DESTROY_AFTER_DONE);
146851 collection.InitializeScanChunk(scan_state, groups);
146852 hash_col_idx = layout.ColumnCount() - 1;
146853 }
@ DESTROY_AFTER_DONE
Destroys blocks after they are done (for reading only).
Definition duckdb.cpp:56603
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237

Member Function Documentation

◆ Scan()

bool duckdb::FlushMoveState::Scan ( )
inline
146855 {
146856 if (collection.Scan(scan_state, groups)) {
146857 collection.Gather(scan_state.chunk_state.row_locations, *FlatVector::IncrementalSelectionVector(),
146858 groups.size(), hash_col_idx, hashes, *FlatVector::IncrementalSelectionVector(), nullptr);
146859 return true;
146860 }
146861
146862 collection.FinalizePinState(scan_state.pin_state);
146863 return false;
146864 }

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