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

Public Member Functions

 WindowCustomAggregatorLocalState (ExecutionContext &context, const AggregateObject &aggr, const WindowExcludeMode exclude_mode)
Public Member Functions inherited from duckdb::WindowAggregatorLocalState
 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

Public Attributes

const AggregateObject aggr
 The aggregate function.
vector< data_t > state
 Data pointer that contains a single state, shared by all the custom evaluators.
Vector statef
 Reused result state container for the window functions.
SubFrames frames
 The frame boundaries, used for the window functions.
Public Attributes inherited from duckdb::WindowAggregatorLocalState
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.

Additional Inherited Members

Public Types inherited from duckdb::WindowAggregatorLocalState
using CollectionPtr = optional_ptr<WindowCollection>
Static Public Member Functions inherited from duckdb::WindowAggregatorLocalState
static void InitSubFrames (SubFrames &frames, const WindowExcludeMode exclude_mode)

Constructor & Destructor Documentation

◆ WindowCustomAggregatorLocalState()

duckdb::WindowCustomAggregatorLocalState::WindowCustomAggregatorLocalState ( ExecutionContext & context,
const AggregateObject & aggr,
const WindowExcludeMode exclude_mode )
255332 : WindowAggregatorLocalState(context), aggr(aggr), state(aggr.function.GetStateSizeCallback()(aggr.function)),
255333 statef(Value::POINTER(CastPointerToValue(state.data()))), frames(3, {0, 0}) {
255334 // if we have a frame-by-frame method, share the single state
255335 aggr.function.GetStateInitCallback()(aggr.function, state.data());
255336
255337 InitSubFrames(frames, exclude_mode);
255338}
static DUCKDB_API Value POINTER(uintptr_t value)
Create a pointer Value from a specified value.
Definition duckdb.cpp:132331
SubFrames frames
The frame boundaries, used for the window functions.
Definition duckdb.cpp:255305
Vector statef
Reused result state container for the window functions.
Definition duckdb.cpp:255303
const AggregateObject aggr
The aggregate function.
Definition duckdb.cpp:255299
vector< data_t > state
Data pointer that contains a single state, shared by all the custom evaluators.
Definition duckdb.cpp:255301

◆ ~WindowCustomAggregatorLocalState()

duckdb::WindowCustomAggregatorLocalState::~WindowCustomAggregatorLocalState ( )
override
255340 {
255341 if (aggr.function.HasStateDestructorCallback()) {
255342 AggregateInputData aggr_input_data(aggr.GetFunctionData(), allocator);
255343 aggr.function.GetStateDestructorCallback()(statef, aggr_input_data, 1);
255344 }
255345}
ArenaAllocator allocator
Global allocator.
Definition duckdb.cpp:164091

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