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::AggregateStateType Struct Reference

Static Public Member Functions

static DUCKDB_API const string GetTypeName (const LogicalType &type)
static DUCKDB_API const aggregate_state_t & GetStateType (const LogicalType &type)

Member Function Documentation

◆ GetTypeName()

const string duckdb::AggregateStateType::GetTypeName ( const LogicalType & type)
static
140591 {
140592 D_ASSERT(type.id() == LogicalTypeId::AGGREGATE_STATE);
140593 auto info = type.AuxInfo();
140594 if (!info) {
140595 return "AGGREGATE_STATE<?>";
140596 }
140597 auto aggr_state = info->Cast<AggregateStateTypeInfo>().state_type;
140598 return "AGGREGATE_STATE<" + aggr_state.function_name + "(" +
140599 StringUtil::Join(aggr_state.bound_argument_types, aggr_state.bound_argument_types.size(), ", ",
140600 [](const LogicalType &arg_type) { return arg_type.ToString(); }) +
140601 ")" + "::" + aggr_state.return_type.ToString() + ">";
140602}
static DUCKDB_API string Join(const vector< string > &input, const string &separator)
Join multiple strings into one string. Components are concatenated by the given separator.
Definition duckdb.cpp:109497

◆ GetStateType()

const aggregate_state_t & duckdb::AggregateStateType::GetStateType ( const LogicalType & type)
static
140584 {
140585 D_ASSERT(type.id() == LogicalTypeId::AGGREGATE_STATE);
140586 auto info = type.AuxInfo();
140587 D_ASSERT(info);
140588 return info->Cast<AggregateStateTypeInfo>().state_type;
140589}

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