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::LogicalAnyJoin Class Reference

LogicalAnyJoin represents a join with an arbitrary expression as JoinCondition. More...

Inheritance diagram for duckdb::LogicalAnyJoin:
Collaboration diagram for duckdb::LogicalAnyJoin:

Public Member Functions

 LogicalAnyJoin (JoinType type)
InsertionOrderPreservingMap< string > ParamsToString () const override
void Serialize (Serializer &serializer) const override
Public Member Functions inherited from duckdb::LogicalJoin
 LogicalJoin (JoinType type, LogicalOperatorType logical_type=LogicalOperatorType::LOGICAL_JOIN)
bool HasProjectionMap () const override
vector< ColumnBinding > GetColumnBindings () override
vector< idx_t > GetTableIndex () const override
 Returns the set of table indexes of this operator.
string GetName () const override
Public Member Functions inherited from duckdb::LogicalOperator
 LogicalOperator (LogicalOperatorType type)
 LogicalOperator (LogicalOperatorType type, vector< unique_ptr< Expression > > expressions)
virtual idx_t GetRootIndex ()
void PrintColumnBindings ()
void ResolveOperatorTypes ()
 Resolve the types of the logical operator and its children.
virtual string ToString (ExplainFormat format=ExplainFormat::DEFAULT) const
DUCKDB_API void Print ()
virtual void Verify (ClientContext &context)
 Debug method: verify that the integrity of expressions & child nodes are maintained.
void AddChild (unique_ptr< LogicalOperator > child)
virtual idx_t EstimateCardinality (ClientContext &context)
void SetEstimatedCardinality (idx_t _estimated_cardinality)
void SetParamsEstimatedCardinality (InsertionOrderPreservingMap< string > &result) const
virtual unique_ptr< LogicalOperator > Copy (ClientContext &context) const
virtual bool RequireOptimizer () const
virtual bool SupportSerialization () const
 Allows LogicalOperators to opt out of serialization.
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const

Static Public Member Functions

static unique_ptr< LogicalOperator > Deserialize (Deserializer &deserializer)
Static Public Member Functions inherited from duckdb::LogicalJoin
static void GetTableReferences (LogicalOperator &op, unordered_set< idx_t > &bindings)
 Gets the set of table references that are reachable from this node.
static void GetExpressionBindings (const Expression &expr, unordered_set< idx_t > &bindings)
Static Public Member Functions inherited from duckdb::LogicalOperator
static string ColumnBindingsToString (const vector< ColumnBinding > &bindings)
static vector< ColumnBinding > GenerateColumnBindings (idx_t table_idx, idx_t column_count)
static vector< LogicalType > MapTypes (const vector< LogicalType > &types, const vector< idx_t > &projection_map)
static vector< ColumnBinding > MapBindings (const vector< ColumnBinding > &types, const vector< idx_t > &projection_map)
static unique_ptr< LogicalOperator > Deserialize (Deserializer &deserializer)

Public Attributes

unique_ptr< Expression > condition
 The JoinCondition on which this join is performed.
Public Attributes inherited from duckdb::LogicalJoin
JoinType join_type
 The type of the join (INNER, OUTER, etc...).
idx_t mark_index {}
 Table index used to refer to the MARK column (in case of a MARK join).
vector< idx_t > left_projection_map
 The columns of the LHS that are output by the join.
vector< idx_t > right_projection_map
 The columns of the RHS that are output by the join.
vector< unique_ptr< BaseStatistics > > join_stats
 Join Keys statistics (optional).
Public Attributes inherited from duckdb::LogicalOperator
LogicalOperatorType type
 The type of the logical operator.
vector< unique_ptr< LogicalOperator > > children
 The set of children of the operator.
vector< unique_ptr< Expression > > expressions
 The set of expressions contained within the operator, if any.
vector< LogicalType > types
 The types returned by this logical operator. Set by calling LogicalOperator::ResolveTypes.
idx_t estimated_cardinality
 Estimated Cardinality.
bool has_estimated_cardinality

Static Public Attributes

static constexpr const LogicalOperatorType TYPE = LogicalOperatorType::LOGICAL_ANY_JOIN
Static Public Attributes inherited from duckdb::LogicalJoin
static constexpr const LogicalOperatorType TYPE = LogicalOperatorType::LOGICAL_INVALID

Additional Inherited Members

Protected Member Functions inherited from duckdb::LogicalJoin
void ResolveTypes () override
 Resolve types for this specific operator.

Detailed Description

LogicalAnyJoin represents a join with an arbitrary expression as JoinCondition.

Constructor & Destructor Documentation

◆ LogicalAnyJoin()

duckdb::LogicalAnyJoin::LogicalAnyJoin ( JoinType type)
explicit
381442 : LogicalJoin(type, LogicalOperatorType::LOGICAL_ANY_JOIN) {
381443}
LogicalOperatorType type
The type of the logical operator.
Definition duckdb.hpp:21260

Member Function Documentation

◆ ParamsToString()

InsertionOrderPreservingMap< string > duckdb::LogicalAnyJoin::ParamsToString ( ) const
overridevirtual

Reimplemented from duckdb::LogicalOperator.

381445 {
381446 InsertionOrderPreservingMap<string> result;
381447 result["Condition"] = condition->ToString();
381448 SetParamsEstimatedCardinality(result);
381449 return result;
381450}
unique_ptr< Expression > condition
The JoinCondition on which this join is performed.
Definition duckdb.cpp:147093

◆ Serialize()

void duckdb::LogicalAnyJoin::Serialize ( Serializer & serializer) const
overridevirtual

Reimplemented from duckdb::LogicalOperator.

416542 {
416543 LogicalOperator::Serialize(serializer);
416544 serializer.WriteProperty<JoinType>(200, "join_type", join_type);
416545 serializer.WritePropertyWithDefault<idx_t>(201, "mark_index", mark_index);
416546 serializer.WritePropertyWithDefault<vector<idx_t>>(202, "left_projection_map", left_projection_map);
416547 serializer.WritePropertyWithDefault<vector<idx_t>>(203, "right_projection_map", right_projection_map);
416548 serializer.WritePropertyWithDefault<unique_ptr<Expression>>(204, "condition", condition);
416549}
idx_t mark_index
Table index used to refer to the MARK column (in case of a MARK join).
Definition duckdb.cpp:147062
vector< idx_t > right_projection_map
The columns of the RHS that are output by the join.
Definition duckdb.cpp:147066
vector< idx_t > left_projection_map
The columns of the LHS that are output by the join.
Definition duckdb.cpp:147064
JoinType join_type
The type of the join (INNER, OUTER, etc...).
Definition duckdb.cpp:147060
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237

◆ Deserialize()

unique_ptr< LogicalOperator > duckdb::LogicalAnyJoin::Deserialize ( Deserializer & deserializer)
static
416551 {
416552 auto join_type = deserializer.ReadProperty<JoinType>(200, "join_type");
416553 auto result = duckdb::unique_ptr<LogicalAnyJoin>(new LogicalAnyJoin(join_type));
416554 deserializer.ReadPropertyWithDefault<idx_t>(201, "mark_index", result->mark_index);
416555 deserializer.ReadPropertyWithDefault<vector<idx_t>>(202, "left_projection_map", result->left_projection_map);
416556 deserializer.ReadPropertyWithDefault<vector<idx_t>>(203, "right_projection_map", result->right_projection_map);
416557 deserializer.ReadPropertyWithDefault<unique_ptr<Expression>>(204, "condition", result->condition);
416558 return std::move(result);
416559}

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