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

Public Member Functions

 LogicalRecursiveCTE (string ctename_p, idx_t table_index, idx_t column_count, bool union_all, vector< unique_ptr< Expression > > key_targets, unique_ptr< LogicalOperator > top, unique_ptr< LogicalOperator > bottom)
InsertionOrderPreservingMap< string > ParamsToString () const override
vector< ColumnBinding > GetColumnBindings () override
void Serialize (Serializer &serializer) const 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::LogicalCTE
 LogicalCTE (LogicalOperatorType logical_type=LogicalOperatorType::LOGICAL_INVALID)
 LogicalCTE (string ctename_p, idx_t table_index, idx_t column_count, unique_ptr< LogicalOperator > top, unique_ptr< LogicalOperator > bottom, LogicalOperatorType logical_type=LogicalOperatorType::LOGICAL_INVALID)
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.
virtual bool HasProjectionMap () const
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::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

bool union_all
bool ref_recurring
vector< unique_ptr< Expression > > key_targets
Public Attributes inherited from duckdb::LogicalCTE
string ctename
idx_t table_index
idx_t column_count
CorrelatedColumns correlated_columns
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_RECURSIVE_CTE
Static Public Attributes inherited from duckdb::LogicalCTE
static constexpr const LogicalOperatorType TYPE = LogicalOperatorType::LOGICAL_INVALID

Protected Member Functions

void ResolveTypes () override
 Resolve types for this specific operator.

Constructor & Destructor Documentation

◆ LogicalRecursiveCTE() [1/2]

duckdb::LogicalRecursiveCTE::LogicalRecursiveCTE ( )
inlineprivate
147648 : LogicalCTE(LogicalOperatorType::LOGICAL_RECURSIVE_CTE) {
147649 }

◆ LogicalRecursiveCTE() [2/2]

duckdb::LogicalRecursiveCTE::LogicalRecursiveCTE ( string ctename_p,
idx_t table_index,
idx_t column_count,
bool union_all,
vector< unique_ptr< Expression > > key_targets,
unique_ptr< LogicalOperator > top,
unique_ptr< LogicalOperator > bottom )
inline
147658 : LogicalCTE(std::move(ctename_p), table_index, column_count, std::move(top), std::move(bottom),
147659 LogicalOperatorType::LOGICAL_RECURSIVE_CTE),
147660 union_all(union_all), key_targets(std::move(key_targets)) {
147661 }

Member Function Documentation

◆ ParamsToString()

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

Reimplemented from duckdb::LogicalOperator.

382975 {
382976 InsertionOrderPreservingMap<string> result;
382977 result["CTE Name"] = ctename;
382978 result["Table Index"] = StringUtil::Format("%llu", table_index);
382979 SetParamsEstimatedCardinality(result);
382980 return result;
382981}
static string Format(const string fmt_str, ARGS... params)
Format a string using printf semantics.
Definition duckdb.hpp:4002

◆ GetColumnBindings()

vector< ColumnBinding > duckdb::LogicalRecursiveCTE::GetColumnBindings ( )
inlineoverridevirtual

Reimplemented from duckdb::LogicalOperator.

147671 {
147672 return GenerateColumnBindings(table_index, column_count);
147673 }

◆ Serialize()

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

Reimplemented from duckdb::LogicalOperator.

416956 {
416957 LogicalOperator::Serialize(serializer);
416958 serializer.WritePropertyWithDefault<bool>(200, "union_all", union_all);
416959 serializer.WritePropertyWithDefault<string>(201, "ctename", ctename);
416960 serializer.WritePropertyWithDefault<idx_t>(202, "table_index", table_index);
416961 serializer.WritePropertyWithDefault<idx_t>(203, "column_count", column_count);
416962 serializer.WritePropertyWithDefault<vector<unique_ptr<Expression>>>(204, "key_targets", key_targets);
416963 serializer.WritePropertyWithDefault<bool>(205, "ref_recurring", ref_recurring);
416964}
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237

◆ Deserialize()

unique_ptr< LogicalOperator > duckdb::LogicalRecursiveCTE::Deserialize ( Deserializer & deserializer)
static
416966 {
416967 auto result = duckdb::unique_ptr<LogicalRecursiveCTE>(new LogicalRecursiveCTE());
416968 deserializer.ReadPropertyWithDefault<bool>(200, "union_all", result->union_all);
416969 deserializer.ReadPropertyWithDefault<string>(201, "ctename", result->ctename);
416970 deserializer.ReadPropertyWithDefault<idx_t>(202, "table_index", result->table_index);
416971 deserializer.ReadPropertyWithDefault<idx_t>(203, "column_count", result->column_count);
416972 deserializer.ReadPropertyWithDefault<vector<unique_ptr<Expression>>>(204, "key_targets", result->key_targets);
416973 deserializer.ReadPropertyWithDefault<bool>(205, "ref_recurring", result->ref_recurring);
416974 return std::move(result);
416975}

◆ GetTableIndex()

vector< idx_t > duckdb::LogicalRecursiveCTE::GetTableIndex ( ) const
overridevirtual

Returns the set of table indexes of this operator.

Reimplemented from duckdb::LogicalOperator.

382983 {
382984 return vector<idx_t> {table_index};
382985}

◆ GetName()

string duckdb::LogicalRecursiveCTE::GetName ( ) const
overridevirtual

Reimplemented from duckdb::LogicalOperator.

382987 {
382988#ifdef DEBUG
382990 return LogicalOperator::GetName() + StringUtil::Format(" #%llu", table_index);
382991 }
382992#endif
382993 return LogicalOperator::GetName();
382994}
static bool debug_print_bindings
Whether to print bindings when printing the plan (debug mode only).
Definition duckdb.hpp:40040

◆ ResolveTypes()

void duckdb::LogicalRecursiveCTE::ResolveTypes ( )
inlineoverrideprotectedvirtual

Resolve types for this specific operator.

Implements duckdb::LogicalOperator.

147682 {
147683 types = children[0]->types;
147684 }
vector< LogicalType > types
The types returned by this logical operator. Set by calling LogicalOperator::ResolveTypes.
Definition duckdb.hpp:21266
vector< unique_ptr< LogicalOperator > > children
The set of children of the operator.
Definition duckdb.hpp:21262

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