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

Static Public Member Functions

template<class T, class OP>
static idx_t Operation (Vector &left, Vector &right, idx_t left_size, idx_t right_size, idx_t &lpos, idx_t &rpos, SelectionVector &lvector, SelectionVector &rvector, idx_t current_match_count)

Member Function Documentation

◆ Operation()

template<class T, class OP>
idx_t duckdb::RefineNestedLoopJoin::Operation ( Vector & left,
Vector & right,
idx_t left_size,
idx_t right_size,
idx_t & lpos,
idx_t & rpos,
SelectionVector & lvector,
SelectionVector & rvector,
idx_t current_match_count )
inlinestatic
159235 {
159236 using MATCH_OP = ComparisonOperationWrapper<OP>;
159237
159238 UnifiedVectorFormat left_data, right_data;
159239 left.ToUnifiedFormat(left_size, left_data);
159240 right.ToUnifiedFormat(right_size, right_data);
159241
159242 // refine phase of the nested loop join
159243 // refine lvector and rvector based on matches of subsequent conditions (in case there are multiple conditions
159244 // in the join)
159245 D_ASSERT(current_match_count > 0);
159246 auto ldata = UnifiedVectorFormat::GetData<T>(left_data);
159247 auto rdata = UnifiedVectorFormat::GetData<T>(right_data);
159248 idx_t result_count = 0;
159249 for (idx_t i = 0; i < current_match_count; i++) {
159250 auto lidx = lvector.get_index(i);
159251 auto ridx = rvector.get_index(i);
159252 auto left_idx = left_data.sel->get_index(lidx);
159253 auto right_idx = right_data.sel->get_index(ridx);
159254 bool left_is_valid = left_data.validity.RowIsValid(left_idx);
159255 bool right_is_valid = right_data.validity.RowIsValid(right_idx);
159256 if (MATCH_OP::Operation(ldata[left_idx], rdata[right_idx], !left_is_valid, !right_is_valid)) {
159257 lvector.set_index(result_count, lidx);
159258 rvector.set_index(result_count, ridx);
159259 result_count++;
159260 }
159261 }
159262 return result_count;
159263 }
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: