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

Public Member Functions

 WindowPeerGlobalState (ClientContext &client, const WindowPeerExecutor &executor, const idx_t payload_count, const ValidityMask &partition_mask, const ValidityMask &order_mask)
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

bool use_framing = false
 Use framing instead of partitions (ORDER BY arguments).
unique_ptr< WindowTokenTree > token_tree
 The token tree for ORDER BY arguments.
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

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ WindowPeerGlobalState()

duckdb::WindowPeerGlobalState::WindowPeerGlobalState ( ClientContext & client,
const WindowPeerExecutor & executor,
const idx_t payload_count,
const ValidityMask & partition_mask,
const ValidityMask & order_mask )
inline
257024 : WindowExecutorGlobalState(client, executor, payload_count, partition_mask, order_mask) {
257025 if (!executor.arg_order_idx.empty()) {
257026 use_framing = true;
257027
257028 // If the argument order is a prefix of the partition ordering
257029 // (and the optimizer is enabled), then we can just use the partition ordering.
257030 auto &wexpr = executor.wexpr;
257031 auto &arg_orders = executor.wexpr.arg_orders;
257032 const auto optimize = ClientConfig::GetConfig(client).enable_optimizer;
257033 if (!optimize || BoundWindowExpression::GetSharedOrders(wexpr.orders, arg_orders) != arg_orders.size()) {
257034 token_tree = make_uniq<WindowTokenTree>(client, arg_orders, executor.arg_order_idx, payload_count);
257035 }
257036 }
257037 }
static idx_t GetSharedOrders(const vector< BoundOrderByNode > &lhs, const vector< BoundOrderByNode > &rhs)
The number of ordering clauses the functions share.
Definition duckdb.cpp:376957
bool use_framing
Use framing instead of partitions (ORDER BY arguments).
Definition duckdb.cpp:257040
unique_ptr< WindowTokenTree > token_tree
The token tree for ORDER BY arguments.
Definition duckdb.cpp:257043

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