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

Public Member Functions

 LocalUngroupedAggregateState (GlobalUngroupedAggregateState &gstate)
void Sink (DataChunk &payload_chunk, idx_t payload_idx, idx_t aggr_idx)

Public Attributes

ArenaAllocator & allocator
 Local arena allocator.
UngroupedAggregateState state
 The local aggregate state.

Constructor & Destructor Documentation

◆ LocalUngroupedAggregateState()

duckdb::LocalUngroupedAggregateState::LocalUngroupedAggregateState ( GlobalUngroupedAggregateState & gstate)
explicit
162805 : allocator(gstate.CreateAllocator()), state(gstate.state.aggregate_expressions) {
162806}
UngroupedAggregateState state
The local aggregate state.
Definition duckdb.cpp:161035
ArenaAllocator & allocator
Local arena allocator.
Definition duckdb.cpp:161033

Member Function Documentation

◆ Sink()

void duckdb::LocalUngroupedAggregateState::Sink ( DataChunk & payload_chunk,
idx_t payload_idx,
idx_t aggr_idx )
162932 {
162933#ifdef DEBUG
162934 state.counts[aggr_idx] += payload_chunk.size();
162935#endif
162936 auto &aggregate = state.aggregate_expressions[aggr_idx]->Cast<BoundAggregateExpression>();
162937 idx_t payload_cnt = aggregate.children.size();
162938 D_ASSERT(payload_idx + payload_cnt <= payload_chunk.data.size());
162939 auto start_of_input = payload_cnt == 0 ? nullptr : &payload_chunk.data[payload_idx];
162940 AggregateInputData aggr_input_data(state.bind_data[aggr_idx], allocator);
162941 aggregate.function.GetStateSimpleUpdateCallback()(start_of_input, aggr_input_data, payload_cnt,
162942 state.aggregate_data[aggr_idx].get(), payload_chunk.size());
162943}
vector< Vector > data
The vectors owned by the DataChunk.
Definition duckdb.hpp:11445
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: