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

Public Member Functions

 LogicalExplain (unique_ptr< LogicalOperator > plan, ExplainType explain_type, ExplainFormat explain_format)
void Serialize (Serializer &serializer) const override
idx_t EstimateCardinality (ClientContext &context) override
bool SupportSerialization () const override
 Skips the serialization check in VerifyPlan.
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 GetName () const
virtual InsertionOrderPreservingMap< string > ParamsToString () const
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)
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 HasProjectionMap () const
virtual vector< idx_t > GetTableIndex () const
 Returns the set of table indexes of this operator.
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

ExplainType explain_type
ExplainFormat explain_format
string physical_plan
string logical_plan_unopt
string logical_plan_opt
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_EXPLAIN

Protected Member Functions

void ResolveTypes () override
 Resolve types for this specific operator.
vector< ColumnBinding > GetColumnBindings () override

Private Member Functions

 LogicalExplain (ExplainType explain_type)

Constructor & Destructor Documentation

◆ LogicalExplain() [1/2]

duckdb::LogicalExplain::LogicalExplain ( ExplainType explain_type)
inlineexplicitprivate
204241 : LogicalOperator(LogicalOperatorType::LOGICAL_EXPLAIN), explain_type(explain_type) {};

◆ LogicalExplain() [2/2]

duckdb::LogicalExplain::LogicalExplain ( unique_ptr< LogicalOperator > plan,
ExplainType explain_type,
ExplainFormat explain_format )
inline
204248 : LogicalOperator(LogicalOperatorType::LOGICAL_EXPLAIN), explain_type(explain_type),
204249 explain_format(explain_format) {
204250 children.push_back(std::move(plan));
204251 }
vector< unique_ptr< LogicalOperator > > children
The set of children of the operator.
Definition duckdb.hpp:21262

Member Function Documentation

◆ Serialize()

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

Reimplemented from duckdb::LogicalOperator.

416750 {
416751 LogicalOperator::Serialize(serializer);
416752 serializer.WriteProperty<ExplainType>(200, "explain_type", explain_type);
416753 serializer.WritePropertyWithDefault<string>(201, "physical_plan", physical_plan);
416754 serializer.WritePropertyWithDefault<string>(202, "logical_plan_unopt", logical_plan_unopt);
416755 serializer.WritePropertyWithDefault<string>(203, "logical_plan_opt", logical_plan_opt);
416756}

◆ Deserialize()

unique_ptr< LogicalOperator > duckdb::LogicalExplain::Deserialize ( Deserializer & deserializer)
static
416758 {
416759 auto explain_type = deserializer.ReadProperty<ExplainType>(200, "explain_type");
416760 auto result = duckdb::unique_ptr<LogicalExplain>(new LogicalExplain(explain_type));
416761 deserializer.ReadPropertyWithDefault<string>(201, "physical_plan", result->physical_plan);
416762 deserializer.ReadPropertyWithDefault<string>(202, "logical_plan_unopt", result->logical_plan_unopt);
416763 deserializer.ReadPropertyWithDefault<string>(203, "logical_plan_opt", result->logical_plan_opt);
416764 return std::move(result);
416765}

◆ EstimateCardinality()

idx_t duckdb::LogicalExplain::EstimateCardinality ( ClientContext & context)
inlineoverridevirtual

Reimplemented from duckdb::LogicalOperator.

204263 {
204264 return 3;
204265 }

◆ SupportSerialization()

bool duckdb::LogicalExplain::SupportSerialization ( ) const
inlineoverridevirtual

Skips the serialization check in VerifyPlan.

Reimplemented from duckdb::LogicalOperator.

204267 {
204268 return false;
204269 }

◆ ResolveTypes()

void duckdb::LogicalExplain::ResolveTypes ( )
inlineoverrideprotectedvirtual

Resolve types for this specific operator.

Implements duckdb::LogicalOperator.

204272 {
204273 types = {LogicalType::VARCHAR, LogicalType::VARCHAR};
204274 }
vector< LogicalType > types
The types returned by this logical operator. Set by calling LogicalOperator::ResolveTypes.
Definition duckdb.hpp:21266

◆ GetColumnBindings()

vector< ColumnBinding > duckdb::LogicalExplain::GetColumnBindings ( )
inlineoverrideprotectedvirtual

Reimplemented from duckdb::LogicalOperator.

204275 {
204276 return {ColumnBinding(0, 0), ColumnBinding(0, 1)};
204277 }

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