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::WindowValueExecutor Class Reference
Inheritance diagram for duckdb::WindowValueExecutor:
Collaboration diagram for duckdb::WindowValueExecutor:

Public Member Functions

 WindowValueExecutor (BoundWindowExpression &wexpr, WindowSharedExpressions &shared)
void Finalize (ExecutionContext &context, CollectionPtr collection, OperatorSinkInput &sink) const override
unique_ptr< GlobalSinkState > GetGlobalState (ClientContext &client, const idx_t payload_count, const ValidityMask &partition_mask, const ValidityMask &order_mask) const override
unique_ptr< LocalSinkState > GetLocalState (ExecutionContext &context, const GlobalSinkState &gstate) const override
Public Member Functions inherited from duckdb::WindowExecutor
 WindowExecutor (BoundWindowExpression &wexpr, WindowSharedExpressions &shared)
virtual bool IgnoreNulls () const
virtual void Sink (ExecutionContext &context, DataChunk &sink_chunk, DataChunk &coll_chunk, const idx_t input_idx, OperatorSinkInput &sink) const
void Evaluate (ExecutionContext &context, idx_t row_idx, DataChunk &eval_chunk, Vector &result, OperatorSinkInput &sink) const

Public Attributes

column_t child_idx = DConstants::INVALID_INDEX
 The column index of the value column.
column_t nth_idx = DConstants::INVALID_INDEX
 The column index of the Nth column.
column_t offset_idx = DConstants::INVALID_INDEX
 The column index of the offset column.
column_t default_idx = DConstants::INVALID_INDEX
 The column index of the default value column.
vector< column_t > arg_order_idx
 The column indices of any ORDER BY argument expressions.
Public Attributes inherited from duckdb::WindowExecutor
const BoundWindowExpression & wexpr
column_t boundary_start_idx = DConstants::INVALID_INDEX
column_t boundary_end_idx = DConstants::INVALID_INDEX
optional_ptr< Expression > range_expr
column_t range_idx = DConstants::INVALID_INDEX

Additional Inherited Members

Public Types inherited from duckdb::WindowExecutor
using CollectionPtr = optional_ptr<WindowCollection>
Protected Member Functions inherited from duckdb::WindowExecutor
virtual void EvaluateInternal (ExecutionContext &context, DataChunk &eval_chunk, Vector &result, idx_t count, idx_t row_idx, OperatorSinkInput &sink) const =0

Constructor & Destructor Documentation

◆ WindowValueExecutor()

duckdb::WindowValueExecutor::WindowValueExecutor ( BoundWindowExpression & wexpr,
WindowSharedExpressions & shared )
258507 : WindowExecutor(wexpr, shared) {
258508 for (const auto &order : wexpr.arg_orders) {
258509 arg_order_idx.emplace_back(shared.RegisterSink(order.expression));
258510 }
258511
258512 // The children have to be handled separately because only the first one is global
258513 if (!wexpr.children.empty()) {
258514 child_idx = shared.RegisterCollection(wexpr.children[0], IgnoreNulls());
258515
258516 if (wexpr.children.size() > 1) {
258517 nth_idx = shared.RegisterEvaluate(wexpr.children[1]);
258518 }
258519 }
258520
258521 offset_idx = shared.RegisterEvaluate(wexpr.offset_expr);
258522 default_idx = shared.RegisterEvaluate(wexpr.default_expr);
258523}
vector< column_t > arg_order_idx
The column indices of any ORDER BY argument expressions.
Definition duckdb.cpp:164354
column_t child_idx
The column index of the value column.
Definition duckdb.cpp:164346
column_t default_idx
The column index of the default value column.
Definition duckdb.cpp:164352
column_t nth_idx
The column index of the Nth column.
Definition duckdb.cpp:164348
column_t offset_idx
The column index of the offset column.
Definition duckdb.cpp:164350

Member Function Documentation

◆ Finalize()

void duckdb::WindowValueExecutor::Finalize ( ExecutionContext & context,
CollectionPtr collection,
OperatorSinkInput & sink ) const
overridevirtual

Reimplemented from duckdb::WindowExecutor.

258531 {
258532 auto &gvstate = sink.global_state.Cast<WindowValueGlobalState>();
258533 gvstate.Finalize(collection);
258534
258535 WindowExecutor::Finalize(context, collection, sink);
258536}

◆ GetGlobalState()

unique_ptr< GlobalSinkState > duckdb::WindowValueExecutor::GetGlobalState ( ClientContext & client,
const idx_t payload_count,
const ValidityMask & partition_mask,
const ValidityMask & order_mask ) const
overridevirtual

Reimplemented from duckdb::WindowExecutor.

258527 {
258528 return make_uniq<WindowValueGlobalState>(client, *this, payload_count, partition_mask, order_mask);
258529}

◆ GetLocalState()

unique_ptr< LocalSinkState > duckdb::WindowValueExecutor::GetLocalState ( ExecutionContext & context,
const GlobalSinkState & gstate ) const
overridevirtual

Reimplemented from duckdb::WindowExecutor.

258539 {
258540 const auto &gvstate = gstate.Cast<WindowValueGlobalState>();
258541 return make_uniq<WindowValueLocalState>(context, gvstate);
258542}

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