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::LambdaFunctions::LambdaInfo Struct Reference

LambdaInfo sets up and stores the information needed by all lambda functions. More...

Collaboration diagram for duckdb::LambdaFunctions::LambdaInfo:

Public Member Functions

 LambdaInfo (DataChunk &args, ExpressionState &state, Vector &result, bool &result_is_null)

Public Attributes

const list_entry_t * list_entries
UnifiedVectorFormat list_column_format
optional_ptr< Vector > child_vector
Vector & result
optional_ptr< ValidityMask > result_validity
vector< ColumnInfo > column_infos
optional_ptr< Expression > lambda_expr
const idx_t row_count
bool has_index
bool has_initial
bool is_volatile
const bool is_all_constant

Detailed Description

LambdaInfo sets up and stores the information needed by all lambda functions.

Constructor & Destructor Documentation

◆ LambdaInfo()

duckdb::LambdaFunctions::LambdaInfo::LambdaInfo ( DataChunk & args,
ExpressionState & state,
Vector & result,
bool & result_is_null )
inlineexplicit
376347 : result(result), row_count(args.size()), is_all_constant(args.AllConstant()) {
376348 Vector &list_column = args.data[0];
376349
376350 result.SetVectorType(VectorType::FLAT_VECTOR);
376351 result_validity = &FlatVector::Validity(result);
376352
376353 if (list_column.GetType().id() == LogicalTypeId::SQLNULL) {
376354 result.SetVectorType(VectorType::CONSTANT_VECTOR);
376355 ConstantVector::SetNull(result, true);
376356 result_is_null = true;
376357 return;
376358 }
376359
376360 // get the lambda expression
376361 auto &func_expr = state.expr.Cast<BoundFunctionExpression>();
376362 auto &bind_info = func_expr.bind_info->Cast<ListLambdaBindData>();
376363 lambda_expr = bind_info.lambda_expr;
376364 is_volatile = lambda_expr->IsVolatile();
376365 has_index = bind_info.has_index;
376366 has_initial = bind_info.has_initial;
376367
376368 // get the list column entries
376369 list_column.ToUnifiedFormat(row_count, list_column_format);
376370 list_entries = UnifiedVectorFormat::GetData<list_entry_t>(list_column_format);
376371 child_vector = &ListVector::GetEntry(list_column);
376372
376373 // get the lambda column data for all other input vectors
376374 column_infos = LambdaFunctions::GetColumnInfo(args, row_count);
376375 };
static DUCKDB_API const Vector & GetEntry(const Vector &vector)
Gets a reference to the underlying child-vector of a list.
Definition duckdb.cpp:138203

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