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

Public Member Functions

 LogicalExport (CopyFunction function, unique_ptr< CopyInfo > copy_info, unique_ptr< BoundExportData > exported_tables)
void Serialize (Serializer &serializer) const 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)
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)

Public Attributes

unique_ptr< CopyInfo > copy_info
CopyFunction function
unique_ptr< BoundExportData > exported_tables
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_EXPORT

Protected Member Functions

 LogicalExport (ClientContext &context, unique_ptr< ParseInfo > copy_info, unique_ptr< ParseInfo > exported_tables)
void ResolveTypes () override
 Resolve types for this specific operator.
CopyFunction GetCopyFunction (ClientContext &context, CopyInfo &info)

Constructor & Destructor Documentation

◆ LogicalExport() [1/2]

duckdb::LogicalExport::LogicalExport ( CopyFunction function,
unique_ptr< CopyInfo > copy_info,
unique_ptr< BoundExportData > exported_tables )
382077 : LogicalOperator(LogicalOperatorType::LOGICAL_EXPORT), copy_info(std::move(copy_info)),
382078 function(std::move(function)), exported_tables(std::move(exported_tables)) {
382079}

◆ LogicalExport() [2/2]

duckdb::LogicalExport::LogicalExport ( ClientContext & context,
unique_ptr< ParseInfo > copy_info,
unique_ptr< ParseInfo > exported_tables )
protected
382083 : LogicalOperator(LogicalOperatorType::LOGICAL_EXPORT),
382084 copy_info(unique_ptr_cast<ParseInfo, CopyInfo>(std::move(copy_info_p))),
382085 function(GetCopyFunction(context, *copy_info)),
382086 exported_tables(unique_ptr_cast<ParseInfo, BoundExportData>(std::move(exported_tables_p))) {
382087}

Member Function Documentation

◆ Serialize()

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

Reimplemented from duckdb::LogicalOperator.

416767 {
416768 LogicalOperator::Serialize(serializer);
416769 serializer.WritePropertyWithDefault<unique_ptr<CopyInfo>>(200, "copy_info", copy_info);
416770 serializer.WritePropertyWithDefault<unique_ptr<BoundExportData>>(201, "exported_tables", exported_tables);
416771}

◆ Deserialize()

unique_ptr< LogicalOperator > duckdb::LogicalExport::Deserialize ( Deserializer & deserializer)
static
416773 {
416774 auto copy_info = deserializer.ReadPropertyWithDefault<unique_ptr<ParseInfo>>(200, "copy_info");
416775 auto exported_tables = deserializer.ReadPropertyWithDefault<unique_ptr<ParseInfo>>(201, "exported_tables");
416776 auto result = duckdb::unique_ptr<LogicalExport>(new LogicalExport(deserializer.Get<ClientContext &>(), std::move(copy_info), std::move(exported_tables)));
416777 return std::move(result);
416778}

◆ ResolveTypes()

void duckdb::LogicalExport::ResolveTypes ( )
inlineoverrideprotectedvirtual

Resolve types for this specific operator.

Implements duckdb::LogicalOperator.

204373 {
204374 types.emplace_back(LogicalType::BOOLEAN);
204375 }
vector< LogicalType > types
The types returned by this logical operator. Set by calling LogicalOperator::ResolveTypes.
Definition duckdb.hpp:21266

◆ GetCopyFunction()

CopyFunction duckdb::LogicalExport::GetCopyFunction ( ClientContext & context,
CopyInfo & info )
protected
382089 {
382090 auto &copy_entry =
382091 Catalog::GetEntry<CopyFunctionCatalogEntry>(context, INVALID_CATALOG, DEFAULT_SCHEMA, info.format);
382092 return copy_entry.function;
382093}
DUCKDB_API optional_ptr< CatalogEntry > GetEntry(ClientContext &context, const string &schema, const EntryLookupInfo &lookup_info, OnEntryNotFound if_not_found)
Gets the "schema.name" entry of the specified type, if entry does not exist behavior depends on OnEnt...
Definition duckdb.cpp:8156

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