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::InitialNestedLoopJoin 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::InitialNestedLoopJoin::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
159197 {
159198 using MATCH_OP = ComparisonOperationWrapper<OP>;
159199
159200 // initialize phase of nested loop join
159201 // fill lvector and rvector with matches from the base vectors
159202 UnifiedVectorFormat left_data, right_data;
159203 left.ToUnifiedFormat(left_size, left_data);
159204 right.ToUnifiedFormat(right_size, right_data);
159205
159206 auto ldata = UnifiedVectorFormat::GetData<T>(left_data);
159207 auto rdata = UnifiedVectorFormat::GetData<T>(right_data);
159208 idx_t result_count = 0;
159209 for (; rpos < right_size; rpos++) {
159210 idx_t right_position = right_data.sel->get_index(rpos);
159211 bool right_is_valid = right_data.validity.RowIsValid(right_position);
159212 for (; lpos < left_size; lpos++) {
159213 if (result_count == STANDARD_VECTOR_SIZE) {
159214 // out of space!
159215 return result_count;
159216 }
159217 idx_t left_position = left_data.sel->get_index(lpos);
159218 bool left_is_valid = left_data.validity.RowIsValid(left_position);
159219 if (MATCH_OP::Operation(ldata[left_position], rdata[right_position], !left_is_valid, !right_is_valid)) {
159220 // emit tuple
159221 lvector.set_index(result_count, lpos);
159222 rvector.set_index(result_count, rpos);
159223 result_count++;
159224 }
159225 }
159226 lpos = 0;
159227 }
159228 return result_count;
159229 }
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: