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

Public Member Functions

 WindowRowNumberLocalState (ExecutionContext &context, const WindowRowNumberGlobalState &grstate)
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

const WindowRowNumberGlobalState & grstate
 The corresponding global peer state.
unique_ptr< LocalSinkState > local_tree
 The optional sorting state for secondary sorts.
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

◆ WindowRowNumberLocalState()

duckdb::WindowRowNumberLocalState::WindowRowNumberLocalState ( ExecutionContext & context,
const WindowRowNumberGlobalState & grstate )
inlineexplicit
257395 : WindowExecutorBoundsLocalState(context, grstate), grstate(grstate) {
257396 if (grstate.token_tree) {
257397 local_tree = grstate.token_tree->GetLocalState(context);
257398 }
257399 }
const WindowRowNumberGlobalState & grstate
The corresponding global peer state.
Definition duckdb.cpp:257408
unique_ptr< LocalSinkState > local_tree
The optional sorting state for secondary sorts.
Definition duckdb.cpp:257410

Member Function Documentation

◆ Sink()

void duckdb::WindowRowNumberLocalState::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.

257414 {
257415 WindowExecutorBoundsLocalState::Sink(context, sink_chunk, coll_chunk, input_idx, sink);
257416
257417 if (local_tree) {
257418 auto &local_tokens = local_tree->Cast<WindowMergeSortTreeLocalState>();
257419 local_tokens.Sink(context, sink_chunk, input_idx, nullptr, 0, sink.interrupt_state);
257420 }
257421}
Here is the call graph for this function:

◆ Finalize()

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

Finish the sinking and prepare to scan.

Reimplemented from duckdb::WindowExecutorLocalState.

257423 {
257424 WindowExecutorBoundsLocalState::Finalize(context, collection, sink);
257425
257426 if (local_tree) {
257427 auto &local_tokens = local_tree->Cast<WindowMergeSortTreeLocalState>();
257428 local_tokens.Finalize(context, sink.interrupt_state);
257429 local_tokens.window_tree.Build();
257430 }
257431}
Here is the call graph for this function:

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