![]() |
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.
|
PhysicalHashJoin represents a hash loop join between two tables. More...


Classes | |
| struct | JoinProjectionColumns |
Public Member Functions | |
| PhysicalHashJoin (PhysicalPlan &physical_plan, LogicalOperator &op, PhysicalOperator &left, PhysicalOperator &right, vector< JoinCondition > cond, JoinType join_type, const vector< idx_t > &left_projection_map, const vector< idx_t > &right_projection_map, vector< LogicalType > delim_types, idx_t estimated_cardinality, unique_ptr< JoinFilterPushdownInfo > pushdown_info) | |
| PhysicalHashJoin (PhysicalPlan &physical_plan, LogicalOperator &op, PhysicalOperator &left, PhysicalOperator &right, vector< JoinCondition > cond, JoinType join_type, idx_t estimated_cardinality) | |
| unique_ptr< JoinHashTable > | InitializeHashTable (ClientContext &context) const |
| Initialize HT for this operator. | |
| InsertionOrderPreservingMap< string > | ParamsToString () const override |
| unique_ptr< OperatorState > | GetOperatorState (ExecutionContext &context) const override |
| bool | ParallelOperator () const override |
| unique_ptr< GlobalSinkState > | GetGlobalSinkState (ClientContext &context) const override |
| unique_ptr< LocalSinkState > | GetLocalSinkState (ExecutionContext &context) const override |
| SinkResultType | Sink (ExecutionContext &context, DataChunk &chunk, OperatorSinkInput &input) const override |
| SinkCombineResultType | Combine (ExecutionContext &context, OperatorSinkCombineInput &input) const override |
| void | PrepareFinalize (ClientContext &context, GlobalSinkState &global_state) const override |
| SinkFinalizeType | Finalize (Pipeline &pipeline, Event &event, ClientContext &context, OperatorSinkFinalizeInput &input) const override |
| bool | IsSink () const override |
| bool | ParallelSink () const override |
| Public Member Functions inherited from duckdb::PhysicalComparisonJoin | |
| PhysicalComparisonJoin (PhysicalPlan &physical_plan, LogicalOperator &op, PhysicalOperatorType type, vector< JoinCondition > cond, JoinType join_type, idx_t estimated_cardinality) | |
| Public Member Functions inherited from duckdb::PhysicalJoin | |
| PhysicalJoin (PhysicalPlan &physical_plan, LogicalOperator &op, PhysicalOperatorType type, JoinType join_type, idx_t estimated_cardinality) | |
| bool | EmptyResultIfRHSIsEmpty () const |
| void | BuildPipelines (Pipeline ¤t, MetaPipeline &meta_pipeline) override |
| vector< const_reference< PhysicalOperator > > | GetSources () const override |
| OrderPreservationType | SourceOrder () const override |
| The type of order emitted by the operator (as a source). | |
| OrderPreservationType | OperatorOrder () const override |
| The influence the operator has on order (insertion order means no influence). | |
| bool | SinkOrderDependent () const override |
| Public Member Functions inherited from duckdb::CachingPhysicalOperator | |
| CachingPhysicalOperator (PhysicalPlan &physical_plan, PhysicalOperatorType type, vector< LogicalType > types, idx_t estimated_cardinality) | |
| OperatorResultType | Execute (ExecutionContext &context, DataChunk &input, DataChunk &chunk, GlobalOperatorState &gstate, OperatorState &state) const final |
| OperatorFinalizeResultType | FinalExecute (ExecutionContext &context, DataChunk &chunk, GlobalOperatorState &gstate, OperatorState &state) const final |
| bool | RequiresFinalExecute () const final |
| Public Member Functions inherited from duckdb::PhysicalOperator | |
| PhysicalOperator (PhysicalPlan &physical_plan, PhysicalOperatorType type, vector< LogicalType > types, idx_t estimated_cardinality) | |
| PhysicalOperator (const PhysicalOperator &other)=delete | |
| Deleted copy constructors. | |
| PhysicalOperator & | operator= (const PhysicalOperator &)=delete |
| virtual string | GetName () const |
| virtual string | ToString (ExplainFormat format=ExplainFormat::DEFAULT) const |
| void | Print () const |
| virtual vector< const_reference< PhysicalOperator > > | GetChildren () const |
| const vector< LogicalType > & | GetTypes () const |
| Return a vector of the types that will be returned by this operator. | |
| virtual bool | Equals (const PhysicalOperator &other) const |
| idx_t | EstimatedThreadCount () const |
| Functions to help decide how to set up pipeline dependencies. | |
| bool | CanSaturateThreads (ClientContext &context) const |
| virtual void | Verify () |
| virtual unique_ptr< GlobalOperatorState > | GetGlobalOperatorState (ClientContext &context) const |
| virtual OperatorFinalResultType | OperatorFinalize (Pipeline &pipeline, Event &event, ClientContext &context, OperatorFinalizeInput &input) const |
| virtual bool | RequiresOperatorFinalize () const |
| SourceResultType | GetData (ExecutionContext &context, DataChunk &chunk, OperatorSourceInput &input) const |
| virtual OperatorPartitionData | GetPartitionData (ExecutionContext &context, DataChunk &chunk, GlobalSourceState &gstate, LocalSourceState &lstate, const OperatorPartitionInfo &partition_info) const |
| virtual bool | SupportsPartitioning (const OperatorPartitionInfo &partition_info) const |
| virtual ProgressData | GetSinkProgress (ClientContext &context, GlobalSinkState &gstate, const ProgressData source_progress) const |
| Returns the current progress percentage, or a negative value if progress bars are not supported. | |
| virtual InsertionOrderPreservingMap< string > | ExtraSourceParams (GlobalSourceState &gstate, LocalSourceState &lstate) const |
| virtual SinkNextBatchType | NextBatch (ExecutionContext &context, OperatorSinkNextBatchInput &input) const |
| virtual OperatorPartitionInfo | RequiredPartitionInfo () const |
| bool | AllSourcesSupportBatchIndex () const |
| template<class TARGET> | |
| TARGET & | Cast () |
| template<class TARGET> | |
| const TARGET & | Cast () const |
Public Attributes | |
| vector< LogicalType > | condition_types |
| The types of the join keys. | |
| JoinProjectionColumns | payload_columns |
| The indices/types of the payload columns. | |
| JoinProjectionColumns | lhs_output_columns |
| The indices/types of the lhs columns that need to be output. | |
| JoinProjectionColumns | rhs_output_columns |
| The indices/types of the rhs columns that need to be output. | |
| vector< LogicalType > | delim_types |
| Duplicate eliminated types; only used for delim_joins (i.e. correlated subqueries). | |
| vector< unique_ptr< BaseStatistics > > | join_stats |
| Join Keys statistics (optional). | |
| Public Attributes inherited from duckdb::PhysicalComparisonJoin | |
| vector< JoinCondition > | conditions |
| unique_ptr< JoinFilterPushdownInfo > | filter_pushdown |
| Scans where we should push generated filters into (if any). | |
| Public Attributes inherited from duckdb::PhysicalJoin | |
| JoinType | join_type |
| Public Attributes inherited from duckdb::CachingPhysicalOperator | |
| bool | caching_supported |
| Public Attributes inherited from duckdb::PhysicalOperator | |
| ArenaLinkedList< reference< PhysicalOperator > > | children |
| The child operators. | |
| PhysicalOperatorType | type |
| The physical operator type. | |
| vector< LogicalType > | types |
| The return types. | |
| idx_t | estimated_cardinality |
| The estimated cardinality. | |
| unique_ptr< GlobalSinkState > | sink_state |
| The global sink state. | |
| unique_ptr< GlobalOperatorState > | op_state |
| The global operator state. | |
| mutex | lock |
| Lock for (re)setting any of the operator states. | |
Static Public Attributes | |
| static constexpr const PhysicalOperatorType | TYPE = PhysicalOperatorType::HASH_JOIN |
| Static Public Attributes inherited from duckdb::PhysicalJoin | |
| static constexpr const PhysicalOperatorType | TYPE = PhysicalOperatorType::INVALID |
| Static Public Attributes inherited from duckdb::CachingPhysicalOperator | |
| static constexpr const idx_t | CACHE_THRESHOLD = 64 |
| Static Public Attributes inherited from duckdb::PhysicalOperator | |
| static constexpr const PhysicalOperatorType | TYPE = PhysicalOperatorType::INVALID |
Protected Member Functions | |
| OperatorResultType | ExecuteInternal (ExecutionContext &context, DataChunk &input, DataChunk &chunk, GlobalOperatorState &gstate, OperatorState &state) const override |
| Child classes need to implement the ExecuteInternal method instead of the Execute. | |
| unique_ptr< GlobalSourceState > | GetGlobalSourceState (ClientContext &context) const override |
| unique_ptr< LocalSourceState > | GetLocalSourceState (ExecutionContext &context, GlobalSourceState &gstate) const override |
| SourceResultType | GetDataInternal (ExecutionContext &context, DataChunk &chunk, OperatorSourceInput &input) const override |
| ProgressData | GetProgress (ClientContext &context, GlobalSourceState &gstate) const override |
| Returns the current progress percentage, or a negative value if progress bars are not supported. | |
| bool | IsSource () const override |
| Becomes a source when it is an external join. | |
| bool | ParallelSource () const override |
Additional Inherited Members | |
| Static Public Member Functions inherited from duckdb::PhysicalComparisonJoin | |
| static void | ReorderConditions (vector< JoinCondition > &conditions) |
| Re-order join conditions so that equality predicates are first, followed by other predicates. | |
| static void | ConstructEmptyJoinResult (JoinType type, bool has_null, DataChunk &input, DataChunk &result) |
| Construct the join result of a join with an empty RHS. | |
| static void | ConstructFullOuterJoinResult (bool *found_match, ColumnDataCollection &input, DataChunk &result, ColumnDataScanState &scan_state) |
| Construct the remainder of a Full Outer Join based on which tuples in the RHS found no match. | |
| Static Public Member Functions inherited from duckdb::PhysicalJoin | |
| static bool | HasNullValues (DataChunk &chunk) |
| static void | ConstructSemiJoinResult (DataChunk &left, DataChunk &result, bool found_match[]) |
| static void | ConstructAntiJoinResult (DataChunk &left, DataChunk &result, bool found_match[]) |
| static void | ConstructMarkJoinResult (DataChunk &join_keys, DataChunk &left, DataChunk &result, bool found_match[], bool has_null) |
| static void | BuildJoinPipelines (Pipeline ¤t, MetaPipeline &meta_pipeline, PhysicalOperator &op, bool build_rhs=true) |
| Static Public Member Functions inherited from duckdb::PhysicalOperator | |
| static void | SetEstimatedCardinality (InsertionOrderPreservingMap< string > &result, idx_t estimated_cardinality) |
| static idx_t | GetMaxThreadMemory (ClientContext &context) |
| The maximum amount of memory the operator should use per thread. | |
| static OperatorCachingMode | SelectOperatorCachingMode (ExecutionContext &context) |
| Whether operator caching is allowed in the current execution context. | |
PhysicalHashJoin represents a hash loop join between two tables.
| duckdb::PhysicalHashJoin::PhysicalHashJoin | ( | PhysicalPlan & | physical_plan, |
| LogicalOperator & | op, | ||
| PhysicalOperator & | left, | ||
| PhysicalOperator & | right, | ||
| vector< JoinCondition > | cond, | ||
| JoinType | join_type, | ||
| const vector< idx_t > & | left_projection_map, | ||
| const vector< idx_t > & | right_projection_map, | ||
| vector< LogicalType > | delim_types, | ||
| idx_t | estimated_cardinality, | ||
| unique_ptr< JoinFilterPushdownInfo > | pushdown_info ) |
| duckdb::PhysicalHashJoin::PhysicalHashJoin | ( | PhysicalPlan & | physical_plan, |
| LogicalOperator & | op, | ||
| PhysicalOperator & | left, | ||
| PhysicalOperator & | right, | ||
| vector< JoinCondition > | cond, | ||
| JoinType | join_type, | ||
| idx_t | estimated_cardinality ) |
| unique_ptr< JoinHashTable > duckdb::PhysicalHashJoin::InitializeHashTable | ( | ClientContext & | context | ) | const |
Initialize HT for this operator.
|
overridevirtual |
Reimplemented from duckdb::PhysicalComparisonJoin.
|
overridevirtual |
Reimplemented from duckdb::PhysicalOperator.
|
inlineoverridevirtual |
Reimplemented from duckdb::PhysicalOperator.
|
overrideprotectedvirtual |
Child classes need to implement the ExecuteInternal method instead of the Execute.
Implements duckdb::CachingPhysicalOperator.

|
overrideprotectedvirtual |
Reimplemented from duckdb::PhysicalOperator.
|
overrideprotectedvirtual |
Reimplemented from duckdb::PhysicalOperator.
|
overrideprotectedvirtual |
Reimplemented from duckdb::PhysicalOperator.
|
overrideprotectedvirtual |
Returns the current progress percentage, or a negative value if progress bars are not supported.
Reimplemented from duckdb::PhysicalOperator.

|
inlineoverrideprotectedvirtual |
Becomes a source when it is an external join.
Reimplemented from duckdb::PhysicalOperator.
|
inlineoverrideprotectedvirtual |
Reimplemented from duckdb::PhysicalOperator.
|
overridevirtual |
Reimplemented from duckdb::PhysicalOperator.
|
overridevirtual |
Reimplemented from duckdb::PhysicalOperator.
|
overridevirtual |
The sink method is called constantly with new input, as long as new input is available. Note that this method CAN be called in parallel, proper locking is needed when accessing dat a inside the GlobalSinkState.
Reimplemented from duckdb::PhysicalOperator.
|
overridevirtual |
The combine is called when a single thread has completed execution of its part of the pipeline, it is the final time that a specific LocalSinkState is accessible. This method can be called in parallel while other Sink() or Combine() calls are active on the same GlobalSinkState.
Reimplemented from duckdb::PhysicalOperator.
|
overridevirtual |
(optional) function that will be called before Finalize For now, its only use is to to communicate memory usage in multi-join pipelines through TemporaryMemoryManager
Reimplemented from duckdb::PhysicalOperator.

|
overridevirtual |
The finalize is called when ALL threads are finished execution. It is called only once per pipeline, and is entirely single threaded. If Finalize returns SinkResultType::Finished, the sink is marked as finished
Reimplemented from duckdb::PhysicalOperator.

|
inlineoverridevirtual |
Reimplemented from duckdb::PhysicalOperator.
|
inlineoverridevirtual |
Reimplemented from duckdb::PhysicalOperator.