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

Public Member Functions

 HashAggregateGroupingLocalState (const PhysicalHashAggregate &op, const HashAggregateGroupingData &data, ExecutionContext &context)

Public Attributes

unique_ptr< LocalSinkState > table_state
vector< unique_ptr< LocalSinkState > > distinct_states

Constructor & Destructor Documentation

◆ HashAggregateGroupingLocalState()

duckdb::HashAggregateGroupingLocalState::HashAggregateGroupingLocalState ( const PhysicalHashAggregate & op,
const HashAggregateGroupingData & data,
ExecutionContext & context )
160002 {
160003 table_state = data.table_data.GetLocalSinkState(context);
160004 if (!data.HasDistinct()) {
160005 return;
160006 }
160007 auto &distinct_data = *data.distinct_data;
160008
160009 auto &distinct_indices = op.distinct_collection_info->Indices();
160010 D_ASSERT(!distinct_indices.empty());
160011
160012 distinct_states.resize(op.distinct_collection_info->aggregates.size());
160013 auto &table_map = op.distinct_collection_info->table_map;
160014
160015 for (auto &idx : distinct_indices) {
160016 idx_t table_idx = table_map[idx];
160017 auto &radix_table = distinct_data.radix_tables[table_idx];
160018 if (radix_table == nullptr) {
160019 // This aggregate has identical input as another aggregate, so no table is created for it
160020 continue;
160021 }
160022 // Initialize the states of the radix tables used for the distinct aggregates
160023 distinct_states[table_idx] = radix_table->GetLocalSinkState(context);
160024 }
160025}
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237

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