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

Public Member Functions

 WindowLeadLagLocalState (ExecutionContext &context, const WindowLeadLagGlobalState &gstate)
void Sink (ExecutionContext &context, DataChunk &sink_chunk, DataChunk &coll_chunk, idx_t input_idx, OperatorSinkInput &sink) override
 Accumulate the secondary sort values.
void Finalize (ExecutionContext &context, CollectionPtr collection, OperatorSinkInput &sink) override
 Finish the sinking and prepare to scan.
Public Member Functions inherited from duckdb::WindowValueLocalState
 WindowValueLocalState (ExecutionContext &context, const WindowValueGlobalState &gvstate)
void Sink (ExecutionContext &context, DataChunk &sink_chunk, DataChunk &coll_chunk, idx_t input_idx, OperatorSinkInput &sink) override
 Accumulate the secondary sort values.
void Finalize (ExecutionContext &context, CollectionPtr collection, OperatorSinkInput &sink) override
 Finish the sinking and prepare to scan.
Public Member Functions inherited from duckdb::WindowExecutorBoundsLocalState
 WindowExecutorBoundsLocalState (ExecutionContext &context, const WindowExecutorGlobalState &gstate)
virtual void UpdateBounds (WindowExecutorGlobalState &gstate, idx_t row_idx, DataChunk &eval_chunk, optional_ptr< WindowCursor > range)
Public Member Functions inherited from duckdb::WindowExecutorLocalState
 WindowExecutorLocalState (ExecutionContext &context, const WindowExecutorGlobalState &gstate)
Public Member Functions inherited from duckdb::LocalSinkState
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const

Public Attributes

unique_ptr< LocalSinkState > local_row
 The optional sorting state for the secondary sort row mapping.
Public Attributes inherited from duckdb::WindowValueLocalState
const WindowValueGlobalState & gvstate
 The corresponding global value state.
unique_ptr< LocalSinkState > local_value
 The optional sorting state for secondary sorts.
SelectionVector sort_nulls
 Reusable selection vector for NULLs.
SubFrames frames
 The frame boundaries, used for EXCLUDE.
unique_ptr< WindowCursor > cursor
 The state used for reading the collection.
Public Attributes inherited from duckdb::WindowExecutorBoundsLocalState
const ValidityMask & partition_mask
const ValidityMask & order_mask
DataChunk bounds
WindowBoundariesState state
Public Attributes inherited from duckdb::WindowExecutorLocalState
unique_ptr< WindowCursor > range_cursor
 The state used for reading the range collection.
Public Attributes inherited from duckdb::LocalSinkState
SourcePartitionInfo partition_info
 Source partition info.

Additional Inherited Members

Public Types inherited from duckdb::WindowExecutorLocalState
using CollectionPtr = optional_ptr<WindowCollection>

Constructor & Destructor Documentation

◆ WindowLeadLagLocalState()

duckdb::WindowLeadLagLocalState::WindowLeadLagLocalState ( ExecutionContext & context,
const WindowLeadLagGlobalState & gstate )
inline
258601 : WindowValueLocalState(context, gstate) {
258602 if (gstate.row_tree) {
258603 local_row = gstate.row_tree->GetLocalState(context);
258604 }
258605 }
unique_ptr< LocalSinkState > local_row
The optional sorting state for the secondary sort row mapping.
Definition duckdb.cpp:258614

Member Function Documentation

◆ Sink()

void duckdb::WindowLeadLagLocalState::Sink ( ExecutionContext & context,
DataChunk & sink_chunk,
DataChunk & coll_chunk,
idx_t input_idx,
OperatorSinkInput & sink )
overridevirtual

Accumulate the secondary sort values.

Reimplemented from duckdb::WindowExecutorLocalState.

258618 {
258619 WindowValueLocalState::Sink(context, sink_chunk, coll_chunk, input_idx, sink);
258620
258621 if (local_row) {
258622 idx_t filtered = 0;
258623 optional_ptr<SelectionVector> filter_sel;
258624
258625 auto &row_state = local_row->Cast<WindowMergeSortTreeLocalState>();
258626 row_state.Sink(context, sink_chunk, input_idx, filter_sel, filtered, sink.interrupt_state);
258627 }
258628}
void Sink(ExecutionContext &context, DataChunk &sink_chunk, DataChunk &coll_chunk, idx_t input_idx, OperatorSinkInput &sink) override
Accumulate the secondary sort values.
Definition duckdb.cpp:258456
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Finalize()

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

Finish the sinking and prepare to scan.

Reimplemented from duckdb::WindowExecutorLocalState.

258630 {
258631 WindowValueLocalState::Finalize(context, collection, sink);
258632
258633 if (local_row) {
258634 auto &row_state = local_row->Cast<WindowMergeSortTreeLocalState>();
258635 row_state.Finalize(context, sink.interrupt_state);
258636 row_state.window_tree.Build();
258637 }
258638}
void Finalize(ExecutionContext &context, CollectionPtr collection, OperatorSinkInput &sink) override
Finish the sinking and prepare to scan.
Definition duckdb.cpp:258488
Here is the call graph for this function:
Here is the caller graph for this function:

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