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

Public Member Functions

 MergeIntoLocalState (ExecutionContext &context, const PhysicalMergeInto &op)
Public Member Functions inherited from duckdb::LocalSinkState
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const

Public Attributes

MergeSinkState sink_state
vector< MatchResult > match_results
idx_t combine_idx = 0
vector< MergeLocalExecutionState > states
idx_t merged_count = 0
Public Attributes inherited from duckdb::LocalSinkState
SourcePartitionInfo partition_info
 Source partition info.

Constructor & Destructor Documentation

◆ MergeIntoLocalState()

duckdb::MergeIntoLocalState::MergeIntoLocalState ( ExecutionContext & context,
const PhysicalMergeInto & op )
inline
196413 {
196414 for (auto &action : op.actions) {
196415 MergeLocalExecutionState state;
196416 if (action->op) {
196417 state.local_state = action->op->GetLocalSinkState(context);
196418 }
196419 if (action->condition) {
196420 state.condition_executor = make_uniq<ExpressionExecutor>(context.client, *action->condition);
196421 }
196422 if (!action->expressions.empty()) {
196423 state.insert_executor = make_uniq<ExpressionExecutor>(context.client, action->expressions);
196424 vector<LogicalType> insert_types;
196425 for (auto &expr : action->expressions) {
196426 insert_types.push_back(expr->return_type);
196427 }
196428 state.insert_chunk = make_uniq<DataChunk>();
196429 state.insert_chunk->Initialize(context.client, insert_types);
196430 }
196431
196432 states.push_back(std::move(state));
196433 }
196434 for (idx_t i = 0; i < 3; i++) {
196435 match_results.emplace_back(context.client, op.children[0].get().types);
196436 }
196437 }
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237

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