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

Public Member Functions

 HashAggregateLocalSinkState (const PhysicalHashAggregate &op, ExecutionContext &context)
Public Member Functions inherited from duckdb::LocalSinkState
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const

Public Attributes

DataChunk aggregate_input_chunk
vector< HashAggregateGroupingLocalState > grouping_states
AggregateFilterDataSet filter_set
Public Attributes inherited from duckdb::LocalSinkState
SourcePartitionInfo partition_info
 Source partition info.

Constructor & Destructor Documentation

◆ HashAggregateLocalSinkState()

duckdb::HashAggregateLocalSinkState::HashAggregateLocalSinkState ( const PhysicalHashAggregate & op,
ExecutionContext & context )
inline
160173 {
160174 auto &payload_types = op.grouped_aggregate_data.payload_types;
160175 if (!payload_types.empty()) {
160176 aggregate_input_chunk.InitializeEmpty(payload_types);
160177 }
160178
160179 grouping_states.reserve(op.groupings.size());
160180 for (auto &grouping : op.groupings) {
160181 grouping_states.emplace_back(op, grouping, context);
160182 }
160183 // The filter set is only needed here for the distinct aggregates
160184 // the filtering of data for the regular aggregates is done within the hashtable
160185 vector<AggregateObject> aggregate_objects;
160186 for (auto &aggregate : op.grouped_aggregate_data.aggregates) {
160187 auto &aggr = aggregate->Cast<BoundAggregateExpression>();
160188 aggregate_objects.emplace_back(&aggr);
160189 }
160190
160191 filter_set.Initialize(context.client, aggregate_objects, payload_types);
160192 }

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