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::NestedLoopJoinInner Struct Reference

Static Public Member Functions

static idx_t Perform (idx_t &ltuple, idx_t &rtuple, DataChunk &left_conditions, DataChunk &right_conditions, SelectionVector &lvector, SelectionVector &rvector, const vector< JoinCondition > &conditions)

Member Function Documentation

◆ Perform()

idx_t duckdb::NestedLoopJoinInner::Perform ( idx_t & ltuple,
idx_t & rtuple,
DataChunk & left_conditions,
DataChunk & right_conditions,
SelectionVector & lvector,
SelectionVector & rvector,
const vector< JoinCondition > & conditions )
static
159356 {
159357 D_ASSERT(left_conditions.ColumnCount() == right_conditions.ColumnCount());
159358 if (lpos >= left_conditions.size() || rpos >= right_conditions.size()) {
159359 return 0;
159360 }
159361 // for the first condition, lvector and rvector are not set yet
159362 // we initialize them using the InitialNestedLoopJoin
159363 idx_t match_count = NestedLoopJoinComparisonSwitch<InitialNestedLoopJoin>(
159364 left_conditions.data[0], right_conditions.data[0], left_conditions.size(), right_conditions.size(), lpos, rpos,
159365 lvector, rvector, 0, conditions[0].comparison);
159366 // now resolve the rest of the conditions
159367 for (idx_t i = 1; i < conditions.size(); i++) {
159368 // check if we have run out of tuples to compare
159369 if (match_count == 0) {
159370 return 0;
159371 }
159372 // if not, get the vectors to compare
159373 Vector &l = left_conditions.data[i];
159374 Vector &r = right_conditions.data[i];
159375 // then we refine the currently obtained results using the RefineNestedLoopJoin
159376 match_count = NestedLoopJoinComparisonSwitch<RefineNestedLoopJoin>(
159377 l, r, left_conditions.size(), right_conditions.size(), lpos, rpos, lvector, rvector, match_count,
159378 conditions[i].comparison);
159379 }
159380 return match_count;
159381}
vector< Vector > data
The vectors owned by the DataChunk.
Definition duckdb.hpp:11445
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237

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