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

Public Member Functions

 AggregateObject (AggregateFunction function, FunctionData *bind_data, idx_t child_count, idx_t payload_size, AggregateType aggr_type, PhysicalType return_type, Expression *filter=nullptr)
 AggregateObject (BoundAggregateExpression *aggr)
 AggregateObject (const BoundWindowExpression &window)
FunctionData * GetFunctionData () const
bool IsDistinct () const

Static Public Member Functions

static vector< AggregateObject > CreateAggregateObjects (const vector< BoundAggregateExpression * > &bindings)

Public Attributes

AggregateFunction function
shared_ptr< FunctionDataWrapper > bind_data_wrapper
idx_t child_count
idx_t payload_size
AggregateType aggr_type
PhysicalType return_type
Expression * filter = nullptr

Constructor & Destructor Documentation

◆ AggregateObject() [1/3]

duckdb::AggregateObject::AggregateObject ( AggregateFunction function,
FunctionData * bind_data,
idx_t child_count,
idx_t payload_size,
AggregateType aggr_type,
PhysicalType return_type,
Expression * filter = nullptr )
159562 : function(std::move(function)),
159563 bind_data_wrapper(bind_data ? make_shared_ptr<FunctionDataWrapper>(bind_data->Copy()) : nullptr),
159564 child_count(child_count), payload_size(payload_size), aggr_type(aggr_type), return_type(return_type),
159565 filter(filter) {
159566}

◆ AggregateObject() [2/3]

duckdb::AggregateObject::AggregateObject ( BoundAggregateExpression * aggr)
explicit
159569 : AggregateObject(aggr->function, aggr->bind_info.get(), aggr->children.size(),
159570 AlignValue(aggr->function.GetStateSizeCallback()(aggr->function)), aggr->aggr_type,
159571 aggr->return_type.InternalType(), aggr->filter.get()) {
159572}
static T AlignValue(T n)
Align value (ceiling) (not for pointer types).
Definition duckdb.hpp:2126

◆ AggregateObject() [3/3]

duckdb::AggregateObject::AggregateObject ( const BoundWindowExpression & window)
explicit
159575 : AggregateObject(*window.aggregate, window.bind_info.get(), window.children.size(),
159576 AlignValue(window.aggregate->GetStateSizeCallback()(*window.aggregate)),
159577 window.distinct ? AggregateType::DISTINCT : AggregateType::NON_DISTINCT,
159578 window.return_type.InternalType(), window.filter_expr.get()) {
159579}

Member Function Documentation

◆ GetFunctionData()

FunctionData * duckdb::AggregateObject::GetFunctionData ( ) const
inline
56075 {
56076 return bind_data_wrapper ? bind_data_wrapper->function_data.get() : nullptr;
56077 }

◆ IsDistinct()

bool duckdb::AggregateObject::IsDistinct ( ) const
inline
56088 {
56089 return aggr_type == AggregateType::DISTINCT;
56090 }

◆ CreateAggregateObjects()

vector< AggregateObject > duckdb::AggregateObject::CreateAggregateObjects ( const vector< BoundAggregateExpression * > & bindings)
static
159581 {
159582 vector<AggregateObject> aggregates;
159583 aggregates.reserve(bindings.size());
159584 for (auto &binding : bindings) {
159585 aggregates.emplace_back(binding);
159586 }
159587 return aggregates;
159588}

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