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

Public Member Functions

 WindowAggregatorGlobalState (ClientContext &client, const WindowAggregator &aggregator_p, idx_t group_count)
Public Member Functions inherited from duckdb::GlobalSinkState
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const
virtual idx_t MaxThreads (idx_t source_max_threads)
Public Member Functions inherited from duckdb::StateWithBlockableTasks
unique_lock< mutex > Lock ()
void PreventBlocking (const unique_lock< mutex > &guard)
bool BlockTask (const unique_lock< mutex > &guard, const InterruptState &interrupt_state)
 Add a task to 'blocked_tasks' before returning SourceResultType::BLOCKED (must hold the lock).
bool CanBlock (const unique_lock< mutex > &guard) const
bool UnblockTasks (const unique_lock< mutex > &guard)
 Unblock all tasks (must hold the lock).
SinkResultType BlockSink (const unique_lock< mutex > &guard, const InterruptState &interrupt_state)
SourceResultType BlockSource (const unique_lock< mutex > &guard, const InterruptState &interrupt_state)
void VerifyLock (const unique_lock< mutex > &guard) const

Public Attributes

ClientContext & client
 The client we are in.
ArenaAllocator allocator
 Global allocator.
const WindowAggregator & aggregator
 The aggregator data.
const AggregateObject aggr
 The aggregate function.
ValidityArray filter_mask
 The filtered rows in inputs.
mutex lock
 Lock for single threading.
std::atomic< idx_t > locals
 Count of local tasks.
std::atomic< idx_t > finalized
 Number of finalised states.
Public Attributes inherited from duckdb::GlobalSinkState
SinkFinalizeType state

Constructor & Destructor Documentation

◆ WindowAggregatorGlobalState()

duckdb::WindowAggregatorGlobalState::WindowAggregatorGlobalState ( ClientContext & client,
const WindowAggregator & aggregator_p,
idx_t group_count )
253588 : client(client), allocator(BufferAllocator::Get(client)), aggregator(aggregator_p), aggr(aggregator.wexpr),
253589 locals(0), finalized(0) {
253590 if (aggr.filter) {
253591 // Start with all invalid and set the ones that pass
253592 filter_mask.Initialize(group_count, false);
253593 } else {
253594 filter_mask.InitializeEmpty(group_count);
253595 }
253596}
std::atomic< idx_t > finalized
Number of finalised states.
Definition duckdb.cpp:164075
ClientContext & client
The client we are in.
Definition duckdb.cpp:164054
const WindowAggregator & aggregator
The aggregator data.
Definition duckdb.cpp:164060
const AggregateObject aggr
The aggregate function.
Definition duckdb.cpp:164063
ArenaAllocator allocator
Global allocator.
Definition duckdb.cpp:164057
ValidityArray filter_mask
The filtered rows in inputs.
Definition duckdb.cpp:164066
std::atomic< idx_t > locals
Count of local tasks.
Definition duckdb.cpp:164072

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