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

Public Member Functions

 WindowFillLocalState (ExecutionContext &context, const WindowLeadLagGlobalState &gvstate)
void Finalize (ExecutionContext &context, CollectionPtr collection, OperatorSinkInput &sink) override
 Finish the sinking and prepare to scan.
Public Member Functions inherited from duckdb::WindowLeadLagLocalState
 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< WindowCursor > order_cursor
 Cursor for the secondary sort values.
Public Attributes inherited from duckdb::WindowLeadLagLocalState
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

◆ WindowFillLocalState()

duckdb::WindowFillLocalState::WindowFillLocalState ( ExecutionContext & context,
const WindowLeadLagGlobalState & gvstate )
inline
259262 : WindowLeadLagLocalState(context, gvstate) {
259263 // If we optimised the ordering, force computation of the validity range.
259264 if (!gvstate.value_tree) {
259265 state.required.insert(VALID_BEGIN);
259266 state.required.insert(VALID_END);
259267 }
259268 }
const WindowValueGlobalState & gvstate
The corresponding global value state.
Definition duckdb.cpp:258444

Member Function Documentation

◆ Finalize()

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

Finish the sinking and prepare to scan.

Reimplemented from duckdb::WindowExecutorLocalState.

259277 {
259278 WindowLeadLagLocalState::Finalize(context, collection, sink);
259279
259280 // Prepare to scan
259281 auto &gfstate = gvstate.Cast<WindowFillGlobalState>();
259282 if (!order_cursor && gfstate.order_idx != DConstants::INVALID_INDEX) {
259283 order_cursor = make_uniq<WindowCursor>(*collection, gfstate.order_idx);
259284 }
259285}
unique_ptr< WindowCursor > order_cursor
Cursor for the secondary sort values.
Definition duckdb.cpp:259274
void Finalize(ExecutionContext &context, CollectionPtr collection, OperatorSinkInput &sink) override
Finish the sinking and prepare to scan.
Definition duckdb.cpp:258630
static constexpr const idx_t INVALID_INDEX
The value used to signify an invalid index entry.
Definition duckdb.hpp:1117
Here is the call graph for this function:

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