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

LogicalCreate represents a CREATE operator. More...

Inheritance diagram for duckdb::LogicalCreate:
Collaboration diagram for duckdb::LogicalCreate:

Public Member Functions

 LogicalCreate (LogicalOperatorType type, unique_ptr< CreateInfo > info, optional_ptr< SchemaCatalogEntry > schema=nullptr)
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 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)
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

optional_ptr< SchemaCatalogEntry > schema
unique_ptr< CreateInfo > info
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_INVALID

Protected Member Functions

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

Private Member Functions

 LogicalCreate (LogicalOperatorType type, ClientContext &context, unique_ptr< CreateInfo > info)

Detailed Description

LogicalCreate represents a CREATE operator.

Constructor & Destructor Documentation

◆ LogicalCreate() [1/2]

duckdb::LogicalCreate::LogicalCreate ( LogicalOperatorType type,
unique_ptr< CreateInfo > info,
optional_ptr< SchemaCatalogEntry > schema = nullptr )
381760 : LogicalOperator(type), schema(schema), info(std::move(info)) {
381761}
LogicalOperatorType type
The type of the logical operator.
Definition duckdb.hpp:21260

◆ LogicalCreate() [2/2]

duckdb::LogicalCreate::LogicalCreate ( LogicalOperatorType type,
ClientContext & context,
unique_ptr< CreateInfo > info )
private
381764 : LogicalOperator(type), info(std::move(info_p)) {
381765 this->schema = Catalog::GetSchema(context, info->catalog, info->schema, OnEntryNotFound::RETURN_NULL);
381766}
DUCKDB_API SchemaCatalogEntry & GetSchema(ClientContext &context, const EntryLookupInfo &schema_lookup)
Returns the schema object with the specified name, or throws an exception if it does not exist.
Definition duckdb.cpp:7493

Member Function Documentation

◆ Serialize()

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

Reimplemented from duckdb::LogicalOperator.

416635 {
416636 LogicalOperator::Serialize(serializer);
416637 serializer.WritePropertyWithDefault<unique_ptr<CreateInfo>>(200, "info", info);
416638}

◆ Deserialize()

unique_ptr< LogicalOperator > duckdb::LogicalCreate::Deserialize ( Deserializer & deserializer)
static
416640 {
416641 auto info = deserializer.ReadPropertyWithDefault<unique_ptr<CreateInfo>>(200, "info");
416642 auto result = duckdb::unique_ptr<LogicalCreate>(new LogicalCreate(deserializer.Get<LogicalOperatorType>(), deserializer.Get<ClientContext &>(), std::move(info)));
416643 return std::move(result);
416644}

◆ EstimateCardinality()

idx_t duckdb::LogicalCreate::EstimateCardinality ( ClientContext & context)
overridevirtual

Reimplemented from duckdb::LogicalOperator.

381768 {
381769 return 1;
381770}

◆ ResolveTypes()

void duckdb::LogicalCreate::ResolveTypes ( )
overrideprotectedvirtual

Resolve types for this specific operator.

Implements duckdb::LogicalOperator.

381772 {
381773 types.emplace_back(LogicalType::BIGINT);
381774}
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: