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

Public Types

using CollectionPtr = optional_ptr<WindowCollection>

Public Member Functions

 WindowAggregatorLocalState (ExecutionContext &context)
void Sink (ExecutionContext &context, WindowAggregatorGlobalState &gastate, DataChunk &sink_chunk, DataChunk &coll_chunk, idx_t row_idx)
virtual void Finalize (ExecutionContext &context, WindowAggregatorGlobalState &gastate, CollectionPtr collection)
Public Member Functions inherited from duckdb::LocalSinkState
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const

Static Public Member Functions

static void InitSubFrames (SubFrames &frames, const WindowExcludeMode exclude_mode)

Public Attributes

ArenaAllocator allocator
 Global allocator.
unique_ptr< WindowCursor > cursor
 The state used for reading the collection.
Public Attributes inherited from duckdb::LocalSinkState
SourcePartitionInfo partition_info
 Source partition info.

Constructor & Destructor Documentation

◆ WindowAggregatorLocalState()

duckdb::WindowAggregatorLocalState::WindowAggregatorLocalState ( ExecutionContext & context)
explicit
253604 : allocator(BufferAllocator::Get(context.client)) {
253605}
ArenaAllocator allocator
Global allocator.
Definition duckdb.cpp:164091

Member Function Documentation

◆ InitSubFrames()

void duckdb::WindowAggregatorLocalState::InitSubFrames ( SubFrames & frames,
const WindowExcludeMode exclude_mode )
static
253624 {
253625 idx_t nframes = 0;
253626 switch (exclude_mode) {
253627 case WindowExcludeMode::NO_OTHER:
253628 nframes = 1;
253629 break;
253630 case WindowExcludeMode::TIES:
253631 nframes = 3;
253632 break;
253633 case WindowExcludeMode::CURRENT_ROW:
253634 case WindowExcludeMode::GROUP:
253635 nframes = 2;
253636 break;
253637 }
253638 frames.resize(nframes, {0, 0});
253639}
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237

◆ Sink()

void duckdb::WindowAggregatorLocalState::Sink ( ExecutionContext & context,
WindowAggregatorGlobalState & gastate,
DataChunk & sink_chunk,
DataChunk & coll_chunk,
idx_t row_idx )
253608 {
253609}

◆ Finalize()

void duckdb::WindowAggregatorLocalState::Finalize ( ExecutionContext & context,
WindowAggregatorGlobalState & gastate,
CollectionPtr collection )
virtual

Reimplemented in duckdb::WindowDistinctAggregatorLocalState.

253642 {
253643 // Prepare to scan
253644 if (!cursor) {
253645 cursor = make_uniq<WindowCursor>(*collection, gastate.aggregator.child_idx);
253646 }
253647}
unique_ptr< WindowCursor > cursor
The state used for reading the collection.
Definition duckdb.cpp:164094

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