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

Public Types

using GlobalSortedTable = PhysicalRangeJoin::GlobalSortedTable

Public Member Functions

 MergeJoinGlobalState (ClientContext &client, const PhysicalPiecewiseMergeJoin &op)
idx_t Count () const
void Sink (ExecutionContext &context, DataChunk &input, MergeJoinLocalState &lstate)
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

unique_ptr< GlobalSortedTable > table
 The sorted table.
bool skip_filter_pushdown = false
 Should we not bother pushing down filters?
unique_ptr< JoinFilterGlobalState > global_filter_state
 The global filter states to push down (if any).
Public Attributes inherited from duckdb::GlobalSinkState
SinkFinalizeType state

Constructor & Destructor Documentation

◆ MergeJoinGlobalState()

duckdb::MergeJoinGlobalState::MergeJoinGlobalState ( ClientContext & client,
const PhysicalPiecewiseMergeJoin & op )
inline
188815 {
188816 const auto &rhs_types = op.children[1].get().GetTypes();
188817 vector<BoundOrderByNode> rhs_order;
188818 rhs_order.emplace_back(op.rhs_orders[0].Copy());
188819 table = make_uniq<GlobalSortedTable>(client, rhs_order, rhs_types, op);
188820 if (op.filter_pushdown) {
188821 skip_filter_pushdown = op.filter_pushdown->probe_info.empty();
188822 global_filter_state = op.filter_pushdown->GetGlobalState(client, op);
188823 }
188824 }
bool skip_filter_pushdown
Should we not bother pushing down filters?
Definition duckdb.cpp:188835
unique_ptr< GlobalSortedTable > table
The sorted table.
Definition duckdb.cpp:188833
unique_ptr< JoinFilterGlobalState > global_filter_state
The global filter states to push down (if any).
Definition duckdb.cpp:188837

Member Function Documentation

◆ Count()

idx_t duckdb::MergeJoinGlobalState::Count ( ) const
inline
188826 {
188827 return table->count;
188828 }

◆ Sink()

void duckdb::MergeJoinGlobalState::Sink ( ExecutionContext & context,
DataChunk & input,
MergeJoinLocalState & lstate )
188869 {
188870 // Sink the data into the local sort state
188871 lstate.table.Sink(context, input);
188872}

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