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

Public Member Functions

 WindowRowNumberGlobalState (ClientContext &client, const WindowRowNumberExecutor &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.
const column_t ntile_idx
 The evaluation index for NTILE.
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

◆ WindowRowNumberGlobalState()

duckdb::WindowRowNumberGlobalState::WindowRowNumberGlobalState ( ClientContext & client,
const WindowRowNumberExecutor & executor,
const idx_t payload_count,
const ValidityMask & partition_mask,
const ValidityMask & order_mask )
inline
257360 : WindowExecutorGlobalState(client, executor, payload_count, partition_mask, order_mask),
257361 ntile_idx(executor.ntile_idx) {
257362 if (!executor.arg_order_idx.empty()) {
257363 use_framing = true;
257364
257365 // If the argument order is prefix of the partition ordering,
257366 // then we can just use the partition ordering.
257367 auto &wexpr = executor.wexpr;
257368 auto &arg_orders = executor.wexpr.arg_orders;
257369 const auto optimize = ClientConfig::GetConfig(client).enable_optimizer;
257370 if (!optimize || BoundWindowExpression::GetSharedOrders(wexpr.orders, arg_orders) != arg_orders.size()) {
257371 // "The ROW_NUMBER function can be computed by disambiguating duplicate elements based on their
257372 // position in the input data, such that two elements never compare as equal."
257373 token_tree = make_uniq<WindowTokenTree>(client, executor.wexpr.arg_orders, executor.arg_order_idx,
257374 payload_count, true);
257375 }
257376 }
257377 }
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:257380
const column_t ntile_idx
The evaluation index for NTILE.
Definition duckdb.cpp:257386
unique_ptr< WindowTokenTree > token_tree
The token tree for ORDER BY arguments.
Definition duckdb.cpp:257383

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