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

Public Types

using GlobalSortedTable = PhysicalRangeJoin::GlobalSortedTable

Public Member Functions

 IEJoinGlobalState (ClientContext &context, const PhysicalIEJoin &op)
void Sink (ExecutionContext &context, DataChunk &input, IEJoinLocalState &lstate)
void Finalize (ClientContext &client, InterruptState &interrupt)
void Materialize (Pipeline &pipeline, Event &event)
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

vector< unique_ptr< GlobalSortedTable > > tables
 The two input tables (IEJoin materialises both sides).
size_t child
 The child that is being materialised (right/1 then left/0).
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

◆ IEJoinGlobalState()

duckdb::IEJoinGlobalState::IEJoinGlobalState ( ClientContext & context,
const PhysicalIEJoin & op )
inline
186155 : child(1) {
186156 tables.resize(2);
186157 const auto &lhs_types = op.children[0].get().GetTypes();
186158 vector<BoundOrderByNode> lhs_order;
186159 lhs_order.emplace_back(op.lhs_orders[0].Copy());
186160 tables[0] = make_uniq<GlobalSortedTable>(context, lhs_order, lhs_types, op);
186161
186162 const auto &rhs_types = op.children[1].get().GetTypes();
186163 vector<BoundOrderByNode> rhs_order;
186164 rhs_order.emplace_back(op.rhs_orders[0].Copy());
186165 tables[1] = make_uniq<GlobalSortedTable>(context, rhs_order, rhs_types, op);
186166
186167 if (op.filter_pushdown) {
186168 skip_filter_pushdown = op.filter_pushdown->probe_info.empty();
186169 global_filter_state = op.filter_pushdown->GetGlobalState(context, op);
186170 }
186171 }
bool skip_filter_pushdown
Should we not bother pushing down filters?
Definition duckdb.cpp:186194
unique_ptr< JoinFilterGlobalState > global_filter_state
The global filter states to push down (if any).
Definition duckdb.cpp:186196
size_t child
The child that is being materialised (right/1 then left/0).
Definition duckdb.cpp:186192
vector< unique_ptr< GlobalSortedTable > > tables
The two input tables (IEJoin materialises both sides).
Definition duckdb.cpp:186190

Member Function Documentation

◆ Sink()

void duckdb::IEJoinGlobalState::Sink ( ExecutionContext & context,
DataChunk & input,
IEJoinLocalState & lstate )
186226 {
186227 // Sink the data into the local sort state
186228 lstate.table.Sink(context, input);
186229}

◆ Finalize()

void duckdb::IEJoinGlobalState::Finalize ( ClientContext & client,
InterruptState & interrupt )
inline
186175 {
186176 // Sort the current input child
186177 D_ASSERT(child < tables.size());
186178 tables[child]->Finalize(client, interrupt);
186179 };

◆ Materialize()

void duckdb::IEJoinGlobalState::Materialize ( Pipeline & pipeline,
Event & event )
inline
186181 {
186182 // Sort the current input child
186183 D_ASSERT(child < tables.size());
186184 tables[child]->Materialize(pipeline, event);
186185 child = child ? 0 : 2;
186186 skip_filter_pushdown = true;
186187 };

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