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

Public Types

using WindowCollectionPtr = unique_ptr<WindowCollection>
Public Types inherited from duckdb::WindowExecutorGlobalState
using CollectionPtr = optional_ptr<WindowCollection>

Public Member Functions

 WindowValueGlobalState (ClientContext &client, const WindowValueExecutor &executor, const idx_t payload_count, const ValidityMask &partition_mask, const ValidityMask &order_mask)
void Finalize (CollectionPtr collection)
Public Member Functions inherited from duckdb::WindowExecutorGlobalState
 WindowExecutorGlobalState (ClientContext &client, const WindowExecutor &executor, const idx_t payload_count, const ValidityMask &partition_mask, const ValidityMask &order_mask)
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

mutex lock
ValidityMask all_valid
optional_ptr< ValidityMask > ignore_nulls
const column_t child_idx
 Copy of the executor child_idx.
unique_ptr< WindowIndexTree > value_tree
 Merge sort tree to map unfiltered row number to value.
Public Attributes inherited from duckdb::WindowExecutorGlobalState
ClientContext & client
const WindowExecutor & executor
const idx_t payload_count
const ValidityMask & partition_mask
const ValidityMask & order_mask
vector< LogicalType > arg_types
Public Attributes inherited from duckdb::GlobalSinkState
SinkFinalizeType state

Constructor & Destructor Documentation

◆ WindowValueGlobalState()

duckdb::WindowValueGlobalState::WindowValueGlobalState ( ClientContext & client,
const WindowValueExecutor & executor,
const idx_t payload_count,
const ValidityMask & partition_mask,
const ValidityMask & order_mask )
inline
258391 : WindowExecutorGlobalState(client, executor, payload_count, partition_mask, order_mask),
258392 ignore_nulls(&all_valid), child_idx(executor.child_idx) {
258393 if (!executor.arg_order_idx.empty()) {
258394 value_tree =
258395 make_uniq<WindowIndexTree>(client, executor.wexpr.arg_orders, executor.arg_order_idx, payload_count);
258396 }
258397 }
unique_ptr< WindowIndexTree > value_tree
Merge sort tree to map unfiltered row number to value.
Definition duckdb.cpp:258415
const column_t child_idx
Copy of the executor child_idx.
Definition duckdb.cpp:258412

Member Function Documentation

◆ Finalize()

void duckdb::WindowValueGlobalState::Finalize ( CollectionPtr collection)
inline
258399 {
258400 lock_guard<mutex> ignore_nulls_guard(lock);
258401 if (child_idx != DConstants::INVALID_INDEX && executor.IgnoreNulls()) {
258402 ignore_nulls = &collection->validities[child_idx];
258403 }
258404 }
static constexpr const idx_t INVALID_INDEX
The value used to signify an invalid index entry.
Definition duckdb.hpp:1117

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