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

Public Types

using SortStrategyPtr = unique_ptr<SortStrategy>
using SortStrategySinkPtr = unique_ptr<GlobalSinkState>
using PartitionMarkers = vector<OuterJoinMarker>

Public Member Functions

 AsOfGlobalSinkState (ClientContext &client, const PhysicalAsOfJoin &op)
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

size_t child = 1
 The child that is being materialised (right/1 then left/0).
vector< SortStrategyPtr > sort_strategies
 The child's partitioning description.
vector< SortStrategySinkPtr > strategy_sinks
 The child's partitioning buffer.
Public Attributes inherited from duckdb::GlobalSinkState
SinkFinalizeType state

Constructor & Destructor Documentation

◆ AsOfGlobalSinkState()

duckdb::AsOfGlobalSinkState::AsOfGlobalSinkState ( ClientContext & client,
const PhysicalAsOfJoin & op )
inline
181743 {
181744 // Set up partitions for both sides
181745 sort_strategies.reserve(2);
181746 strategy_sinks.reserve(2);
181747 const vector<unique_ptr<BaseStatistics>> partitions_stats;
181748 auto &lhs = op.children[0].get();
181749 auto sort = SortStrategy::Factory(client, op.lhs_partitions, op.lhs_orders, lhs.GetTypes(), partitions_stats,
181750 lhs.estimated_cardinality, true);
181751 strategy_sinks.emplace_back(sort->GetGlobalSinkState(client));
181752 sort_strategies.emplace_back(std::move(sort));
181753
181754 auto &rhs = op.children[1].get();
181755 sort = SortStrategy::Factory(client, op.rhs_partitions, op.rhs_orders, rhs.GetTypes(), partitions_stats,
181756 rhs.estimated_cardinality, true);
181757 strategy_sinks.emplace_back(sort->GetGlobalSinkState(client));
181758 sort_strategies.emplace_back(std::move(sort));
181759 }
vector< SortStrategyPtr > sort_strategies
The child's partitioning description.
Definition duckdb.cpp:181764
vector< SortStrategySinkPtr > strategy_sinks
The child's partitioning buffer.
Definition duckdb.cpp:181766
void sort(InputArray src, OutputArray dst, int flags)

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