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

Static Public Member Functions

static idx_t FunctionCount (AggregateFunctionCatalogEntry &entry)
static Value GetFunctionType ()
static Value GetReturnType (AggregateFunctionCatalogEntry &entry, idx_t offset)
static vector< Value > GetParameters (AggregateFunctionCatalogEntry &entry, idx_t offset)
static Value GetParameterTypes (AggregateFunctionCatalogEntry &entry, idx_t offset)
static vector< LogicalType > GetParameterLogicalTypes (AggregateFunctionCatalogEntry &entry, idx_t offset)
static Value GetVarArgs (AggregateFunctionCatalogEntry &entry, idx_t offset)
static Value GetMacroDefinition (AggregateFunctionCatalogEntry &entry, idx_t offset)
static Value IsVolatile (AggregateFunctionCatalogEntry &entry, idx_t offset)
static Value ResultType (AggregateFunctionCatalogEntry &entry, idx_t offset)

Member Function Documentation

◆ FunctionCount()

idx_t duckdb::AggregateFunctionExtractor::FunctionCount ( AggregateFunctionCatalogEntry & entry)
inlinestatic
246524 {
246525 return entry.functions.Size();
246526 }

◆ GetFunctionType()

Value duckdb::AggregateFunctionExtractor::GetFunctionType ( )
inlinestatic
246528 {
246529 return Value("aggregate");
246530 }

◆ GetReturnType()

Value duckdb::AggregateFunctionExtractor::GetReturnType ( AggregateFunctionCatalogEntry & entry,
idx_t offset )
inlinestatic
246532 {
246533 return Value(entry.functions.GetFunctionByOffset(offset).GetReturnType().ToString());
246534 }

◆ GetParameters()

vector< Value > duckdb::AggregateFunctionExtractor::GetParameters ( AggregateFunctionCatalogEntry & entry,
idx_t offset )
inlinestatic
246536 {
246537 vector<Value> results;
246538 for (idx_t i = 0; i < entry.functions.GetFunctionByOffset(offset).arguments.size(); i++) {
246539 results.emplace_back("col" + to_string(i));
246540 }
246541 return results;
246542 }
std::string to_string(const T &value)
Definition duckdb.cpp:19425
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237

◆ GetParameterTypes()

Value duckdb::AggregateFunctionExtractor::GetParameterTypes ( AggregateFunctionCatalogEntry & entry,
idx_t offset )
inlinestatic
246544 {
246545 vector<Value> results;
246546 auto fun = entry.functions.GetFunctionByOffset(offset);
246547 for (idx_t i = 0; i < fun.arguments.size(); i++) {
246548 results.emplace_back(fun.arguments[i].ToString());
246549 }
246550 return Value::LIST(LogicalType::VARCHAR, std::move(results));
246551 }
static DUCKDB_API Value LIST(const LogicalType &child_type, vector< Value > values)
Create a list value with the given entries.
Definition duckdb.cpp:132555

◆ GetParameterLogicalTypes()

vector< LogicalType > duckdb::AggregateFunctionExtractor::GetParameterLogicalTypes ( AggregateFunctionCatalogEntry & entry,
idx_t offset )
inlinestatic
246553 {
246554 auto fun = entry.functions.GetFunctionByOffset(offset);
246555 return fun.arguments;
246556 }

◆ GetVarArgs()

Value duckdb::AggregateFunctionExtractor::GetVarArgs ( AggregateFunctionCatalogEntry & entry,
idx_t offset )
inlinestatic
246558 {
246559 auto fun = entry.functions.GetFunctionByOffset(offset);
246560 return !fun.HasVarArgs() ? Value() : Value(fun.varargs.ToString());
246561 }

◆ GetMacroDefinition()

Value duckdb::AggregateFunctionExtractor::GetMacroDefinition ( AggregateFunctionCatalogEntry & entry,
idx_t offset )
inlinestatic
246563 {
246564 return Value();
246565 }

◆ IsVolatile()

Value duckdb::AggregateFunctionExtractor::IsVolatile ( AggregateFunctionCatalogEntry & entry,
idx_t offset )
inlinestatic
246567 {
246568 return Value::BOOLEAN(entry.functions.GetFunctionByOffset(offset).GetStability() ==
246569 FunctionStability::VOLATILE);
246570 }
static DUCKDB_API Value BOOLEAN(bool value)
Create a boolean Value from a specified value.
Definition duckdb.cpp:132118

◆ ResultType()

Value duckdb::AggregateFunctionExtractor::ResultType ( AggregateFunctionCatalogEntry & entry,
idx_t offset )
inlinestatic
246572 {
246573 return FunctionStabilityToValue(entry.functions.GetFunctionByOffset(offset).GetStability());
246574 }

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