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

Public Member Functions

 LogicalEmptyResult (unique_ptr< LogicalOperator > op)
 LogicalEmptyResult (vector< LogicalType > return_types, vector< ColumnBinding > bindings)
vector< ColumnBinding > GetColumnBindings () override
void Serialize (Serializer &serializer) const override
idx_t EstimateCardinality (ClientContext &context) 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 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 SupportSerialization () const
 Allows LogicalOperators to opt out of serialization.
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

vector< LogicalType > return_types
 The set of return types of the empty result.
vector< ColumnBinding > bindings
 The columns that would be bound at this location (if the subtree was not optimized away).
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_EMPTY_RESULT

Protected Member Functions

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

Detailed Description

LogicalEmptyResult returns an empty result. This is created by the optimizer if it can reason that certain parts of the tree will always return an empty result.

Constructor & Destructor Documentation

◆ LogicalEmptyResult() [1/3]

duckdb::LogicalEmptyResult::LogicalEmptyResult ( )
private
382064 : LogicalOperator(LogicalOperatorType::LOGICAL_EMPTY_RESULT) {
382065}

◆ LogicalEmptyResult() [2/3]

duckdb::LogicalEmptyResult::LogicalEmptyResult ( unique_ptr< LogicalOperator > op)
explicit
382052 : LogicalOperator(LogicalOperatorType::LOGICAL_EMPTY_RESULT) {
382053 this->bindings = op->GetColumnBindings();
382054
382055 op->ResolveOperatorTypes();
382056 this->return_types = op->types;
382057}
vector< LogicalType > return_types
The set of return types of the empty result.
Definition duckdb.cpp:204125
vector< ColumnBinding > bindings
The columns that would be bound at this location (if the subtree was not optimized away).
Definition duckdb.cpp:204127

◆ LogicalEmptyResult() [3/3]

duckdb::LogicalEmptyResult::LogicalEmptyResult ( vector< LogicalType > return_types,
vector< ColumnBinding > bindings )
382060 : LogicalOperator(LogicalOperatorType::LOGICAL_EMPTY_RESULT), return_types(std::move(return_types_p)),
382061 bindings(std::move(bindings_p)) {
382062}

Member Function Documentation

◆ GetColumnBindings()

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

Reimplemented from duckdb::LogicalOperator.

204130 {
204131 return bindings;
204132 }

◆ Serialize()

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

Reimplemented from duckdb::LogicalOperator.

416737 {
416738 LogicalOperator::Serialize(serializer);
416739 serializer.WritePropertyWithDefault<vector<LogicalType>>(200, "return_types", return_types);
416740 serializer.WritePropertyWithDefault<vector<ColumnBinding>>(201, "bindings", bindings);
416741}

◆ Deserialize()

unique_ptr< LogicalOperator > duckdb::LogicalEmptyResult::Deserialize ( Deserializer & deserializer)
static
416743 {
416744 auto result = duckdb::unique_ptr<LogicalEmptyResult>(new LogicalEmptyResult());
416745 deserializer.ReadPropertyWithDefault<vector<LogicalType>>(200, "return_types", result->return_types);
416746 deserializer.ReadPropertyWithDefault<vector<ColumnBinding>>(201, "bindings", result->bindings);
416747 return std::move(result);
416748}

◆ EstimateCardinality()

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

Reimplemented from duckdb::LogicalOperator.

204135 {
204136 return 0;
204137 }

◆ ResolveTypes()

void duckdb::LogicalEmptyResult::ResolveTypes ( )
inlineoverrideprotectedvirtual

Resolve types for this specific operator.

Implements duckdb::LogicalOperator.

204140 {
204141 this->types = return_types;
204142 }
vector< LogicalType > types
The types returned by this logical operator. Set by calling LogicalOperator::ResolveTypes.
Definition duckdb.hpp:21266

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