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

Public Member Functions

void Initialize (ClientContext &context, const vector< AggregateObject > &aggregates, const vector< LogicalType > &payload_types)
AggregateFilterData & GetFilterData (idx_t aggr_idx)

Public Attributes

vector< unique_ptr< AggregateFilterData > > filter_data

Constructor & Destructor Documentation

◆ AggregateFilterDataSet()

duckdb::AggregateFilterDataSet::AggregateFilterDataSet ( )
159607 {
159608}

Member Function Documentation

◆ Initialize()

void duckdb::AggregateFilterDataSet::Initialize ( ClientContext & context,
const vector< AggregateObject > & aggregates,
const vector< LogicalType > & payload_types )
159611 {
159612 bool has_filters = false;
159613 for (auto &aggregate : aggregates) {
159614 if (aggregate.filter) {
159615 has_filters = true;
159616 break;
159617 }
159618 }
159619 if (!has_filters) {
159620 // no filters: nothing to do
159621 return;
159622 }
159623 filter_data.resize(aggregates.size());
159624 for (idx_t aggr_idx = 0; aggr_idx < aggregates.size(); aggr_idx++) {
159625 auto &aggr = aggregates[aggr_idx];
159626 if (aggr.filter) {
159627 filter_data[aggr_idx] = make_uniq<AggregateFilterData>(context, *aggr.filter, payload_types);
159628 }
159629 }
159630}
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237

◆ GetFilterData()

AggregateFilterData & duckdb::AggregateFilterDataSet::GetFilterData ( idx_t aggr_idx)
159632 {
159633 D_ASSERT(aggr_idx < filter_data.size());
159634 D_ASSERT(filter_data[aggr_idx]);
159635 return *filter_data[aggr_idx];
159636}

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