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

Represents a Table producing function. More...

Inheritance diagram for duckdb::TableFunctionRef:
Collaboration diagram for duckdb::TableFunctionRef:

Public Member Functions

string ToString () const override
 Convert the object to a string.
bool Equals (const TableRef &other_p) const override
unique_ptr< TableRef > Copy () override
void Serialize (Serializer &serializer) const override
 Deserializes a blob back into a BaseTableRef.
Public Member Functions inherited from duckdb::TableRef
 TableRef (TableReferenceType type)
void Print ()
void CopyProperties (TableRef &target) const
 Copy the properties of this table ref to the target.
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const

Static Public Member Functions

static unique_ptr< TableRef > Deserialize (Deserializer &source)
Static Public Member Functions inherited from duckdb::TableRef
static bool Equals (const unique_ptr< TableRef > &left, const unique_ptr< TableRef > &right)
static unique_ptr< TableRef > Deserialize (Deserializer &deserializer)

Public Attributes

unique_ptr< ParsedExpression > function
unique_ptr< SelectStatement > subquery
OrdinalityType with_ordinality = OrdinalityType::WITHOUT_ORDINALITY
 Whether or not WITH ORDINALITY has been invoked.
Public Attributes inherited from duckdb::TableRef
TableReferenceType type
string alias
unique_ptr< SampleOptions > sample
 Sample options (if any).
optional_idx query_location
 The location in the query (if any).
shared_ptr< ExternalDependency > external_dependency
 External dependencies of this table function.
vector< string > column_name_alias
 Aliases for the column names.

Static Public Attributes

static constexpr const TableReferenceType TYPE = TableReferenceType::TABLE_FUNCTION
Static Public Attributes inherited from duckdb::TableRef
static constexpr const TableReferenceType TYPE = TableReferenceType::INVALID

Additional Inherited Members

Protected Member Functions inherited from duckdb::TableRef
string BaseToString (string result) const
string BaseToString (string result, const vector< string > &column_name_alias) const
string AliasToString (const vector< string > &column_name_alias) const
string SampleToString () const

Detailed Description

Represents a Table producing function.

Constructor & Destructor Documentation

◆ TableFunctionRef()

duckdb::TableFunctionRef::TableFunctionRef ( )
351142 : TableRef(TableReferenceType::TABLE_FUNCTION) {
351143}

Member Function Documentation

◆ ToString()

string duckdb::TableFunctionRef::ToString ( ) const
overridevirtual

Convert the object to a string.

Implements duckdb::TableRef.

351145 {
351146 auto result = function->ToString();
351147 if (with_ordinality == OrdinalityType::WITH_ORDINALITY) {
351148 result += " WITH ORDINALITY";
351149 }
351150 return BaseToString(result, column_name_alias);
351151}
OrdinalityType with_ordinality
Whether or not WITH ORDINALITY has been invoked.
Definition duckdb.cpp:239640
vector< string > column_name_alias
Aliases for the column names.
Definition duckdb.hpp:53744

◆ Equals()

bool duckdb::TableFunctionRef::Equals ( const TableRef & other_p) const
overridevirtual

Reimplemented from duckdb::TableRef.

351153 {
351154 if (!TableRef::Equals(other_p)) {
351155 return false;
351156 }
351157 auto &other = other_p.Cast<TableFunctionRef>();
351158 return function->Equals(*other.function);
351159}

◆ Copy()

unique_ptr< TableRef > duckdb::TableFunctionRef::Copy ( )
overridevirtual

Implements duckdb::TableRef.

351161 {
351162 auto copy = make_uniq<TableFunctionRef>();
351163
351164 copy->function = function->Copy();
351165 copy->column_name_alias = column_name_alias;
351166 copy->with_ordinality = with_ordinality;
351167 CopyProperties(*copy);
351168
351169 return std::move(copy);
351170}
void CopyProperties(TableRef &target) const
Copy the properties of this table ref to the target.
Definition duckdb.cpp:351228

◆ Serialize()

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

Deserializes a blob back into a BaseTableRef.

Reimplemented from duckdb::TableRef.

419790 {
419791 TableRef::Serialize(serializer);
419792 serializer.WritePropertyWithDefault<unique_ptr<ParsedExpression>>(200, "function", function);
419793 serializer.WritePropertyWithDefault<vector<string>>(201, "column_name_alias", column_name_alias);
419794 serializer.WritePropertyWithDefault<OrdinalityType>(202, "with_ordinality", with_ordinality, OrdinalityType::WITHOUT_ORDINALITY);
419795}

◆ Deserialize()

unique_ptr< TableRef > duckdb::TableFunctionRef::Deserialize ( Deserializer & source)
static
419797 {
419798 auto result = duckdb::unique_ptr<TableFunctionRef>(new TableFunctionRef());
419799 deserializer.ReadPropertyWithDefault<unique_ptr<ParsedExpression>>(200, "function", result->function);
419800 deserializer.ReadPropertyWithDefault<vector<string>>(201, "column_name_alias", result->column_name_alias);
419801 deserializer.ReadPropertyWithExplicitDefault<OrdinalityType>(202, "with_ordinality", result->with_ordinality, OrdinalityType::WITHOUT_ORDINALITY);
419802 return std::move(result);
419803}

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