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::LogicalExtensionOperator Struct Referenceabstract
Inheritance diagram for duckdb::LogicalExtensionOperator:
Collaboration diagram for duckdb::LogicalExtensionOperator:

Public Member Functions

 LogicalExtensionOperator (vector< unique_ptr< Expression > > expressions)
void Serialize (Serializer &serializer) const override
virtual PhysicalOperator & CreatePlan (ClientContext &context, PhysicalPlanGenerator &planner)=0
virtual void ResolveColumnBindings (ColumnBindingResolver &res, vector< ColumnBinding > &bindings)
virtual string GetExtensionName () const
Public Member Functions inherited from duckdb::LogicalOperator
 LogicalOperator (LogicalOperatorType type)
 LogicalOperator (LogicalOperatorType type, vector< unique_ptr< Expression > > expressions)
virtual vector< ColumnBinding > GetColumnBindings ()
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)
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
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)

Static Public Attributes

static constexpr const LogicalOperatorType TYPE = LogicalOperatorType::LOGICAL_EXTENSION_OPERATOR

Additional Inherited Members

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
Protected Member Functions inherited from duckdb::LogicalOperator
virtual void ResolveTypes ()=0
 Resolve types for this specific operator.

Constructor & Destructor Documentation

◆ LogicalExtensionOperator() [1/2]

duckdb::LogicalExtensionOperator::LogicalExtensionOperator ( )
inline
147403 : LogicalOperator(LogicalOperatorType::LOGICAL_EXTENSION_OPERATOR) {
147404 }

◆ LogicalExtensionOperator() [2/2]

duckdb::LogicalExtensionOperator::LogicalExtensionOperator ( vector< unique_ptr< Expression > > expressions)
inlineexplicit
147406 : LogicalOperator(LogicalOperatorType::LOGICAL_EXTENSION_OPERATOR, std::move(expressions)) {
147407 }
vector< unique_ptr< Expression > > expressions
The set of expressions contained within the operator, if any.
Definition duckdb.hpp:21264

Member Function Documentation

◆ Serialize()

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

Reimplemented from duckdb::LogicalOperator.

382138 {
382139 LogicalOperator::Serialize(serializer);
382140 serializer.WriteProperty(200, "extension_name", GetExtensionName());
382141}

◆ Deserialize()

unique_ptr< LogicalOperator > duckdb::LogicalExtensionOperator::Deserialize ( Deserializer & deserializer)
static
382143 {
382144 auto &context = deserializer.Get<ClientContext &>();
382145 auto extension_name = deserializer.ReadProperty<string>(200, "extension_name");
382146 for (auto &extension : OperatorExtension::Iterate(context)) {
382147 if (extension->GetName() == extension_name) {
382148 return extension->Deserialize(deserializer);
382149 }
382150 }
382151 throw SerializationException("No deserialization method exists for extension: " + extension_name);
382152}

◆ ResolveColumnBindings()

void duckdb::LogicalExtensionOperator::ResolveColumnBindings ( ColumnBindingResolver & res,
vector< ColumnBinding > & bindings )
virtual
382124 {
382125 // general case
382126 // first visit the children of this operator
382127 for (auto &child : children) {
382128 res.VisitOperator(*child);
382129 }
382130 // now visit the expressions of this operator to resolve any bound column references
382131 for (auto &expression : expressions) {
382132 res.VisitExpression(&expression);
382133 }
382134 // finally update the current set of bindings to the current set of column bindings
382135 bindings = GetColumnBindings();
382136}
vector< unique_ptr< LogicalOperator > > children
The set of children of the operator.
Definition duckdb.hpp:21262

◆ GetExtensionName()

string duckdb::LogicalExtensionOperator::GetExtensionName ( ) const
virtual
382154 {
382155 throw SerializationException("LogicalExtensionOperator::GetExtensionName not implemented which is required for "
382156 "serializing extension operators");
382157}

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