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

Public Member Functions

 HashAggregateGlobalSinkState (const PhysicalHashAggregate &op, ClientContext &context)
Public Member Functions inherited from duckdb::GlobalSinkState
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const
virtual idx_t MaxThreads (idx_t source_max_threads)
Public Member Functions inherited from duckdb::StateWithBlockableTasks
unique_lock< mutex > Lock ()
void PreventBlocking (const unique_lock< mutex > &guard)
bool BlockTask (const unique_lock< mutex > &guard, const InterruptState &interrupt_state)
 Add a task to 'blocked_tasks' before returning SourceResultType::BLOCKED (must hold the lock).
bool CanBlock (const unique_lock< mutex > &guard) const
bool UnblockTasks (const unique_lock< mutex > &guard)
 Unblock all tasks (must hold the lock).
SinkResultType BlockSink (const unique_lock< mutex > &guard, const InterruptState &interrupt_state)
SourceResultType BlockSource (const unique_lock< mutex > &guard, const InterruptState &interrupt_state)
void VerifyLock (const unique_lock< mutex > &guard) const

Public Attributes

vector< HashAggregateGroupingGlobalState > grouping_states
vector< LogicalType > payload_types
bool finished = false
 Whether or not the aggregate is finished.
Public Attributes inherited from duckdb::GlobalSinkState
SinkFinalizeType state

Constructor & Destructor Documentation

◆ HashAggregateGlobalSinkState()

duckdb::HashAggregateGlobalSinkState::HashAggregateGlobalSinkState ( const PhysicalHashAggregate & op,
ClientContext & context )
inline
160145 {
160146 grouping_states.reserve(op.groupings.size());
160147 for (idx_t i = 0; i < op.groupings.size(); i++) {
160148 auto &grouping = op.groupings[i];
160149 grouping_states.emplace_back(grouping, context);
160150 }
160151 vector<LogicalType> filter_types;
160152 for (auto &aggr : op.grouped_aggregate_data.aggregates) {
160153 auto &aggregate = aggr->Cast<BoundAggregateExpression>();
160154 for (auto &child : aggregate.children) {
160155 payload_types.push_back(child->return_type);
160156 }
160157 if (aggregate.filter) {
160158 filter_types.push_back(aggregate.filter->return_type);
160159 }
160160 }
160161 payload_types.reserve(payload_types.size() + filter_types.size());
160162 payload_types.insert(payload_types.end(), filter_types.begin(), filter_types.end());
160163 }
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237

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