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::SetPartitionedByInfo Struct Reference
Inheritance diagram for duckdb::SetPartitionedByInfo:
Collaboration diagram for duckdb::SetPartitionedByInfo:

Public Member Functions

 SetPartitionedByInfo (AlterEntryData data, vector< unique_ptr< ParsedExpression > > partition_keys)
unique_ptr< AlterInfo > Copy () const override
string ToString () const override
void Serialize (Serializer &serializer) const override
Public Member Functions inherited from duckdb::AlterTableInfo
 AlterTableInfo (AlterTableType type, AlterEntryData data)
CatalogType GetCatalogType () const override
Public Member Functions inherited from duckdb::AlterInfo
 AlterInfo (AlterType type, string catalog, string schema, string name, OnEntryNotFound if_not_found)
virtual string GetColumnName () const
AlterEntryData GetAlterEntryData () const
bool IsAddPrimaryKey () const
Public Member Functions inherited from duckdb::ParseInfo
 ParseInfo (ParseInfoType info_type)
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const

Static Public Member Functions

static unique_ptr< AlterTableInfo > Deserialize (Deserializer &deserializer)
Static Public Member Functions inherited from duckdb::AlterTableInfo
static unique_ptr< AlterInfo > Deserialize (Deserializer &deserializer)
Static Public Member Functions inherited from duckdb::AlterInfo
static unique_ptr< ParseInfo > Deserialize (Deserializer &deserializer)
Static Public Member Functions inherited from duckdb::ParseInfo
static unique_ptr< ParseInfo > Deserialize (Deserializer &deserializer)
static string QualifierToString (const string &catalog, const string &schema, const string &name)
static string TypeToString (CatalogType type)

Public Attributes

vector< unique_ptr< ParsedExpression > > partition_keys
 The partition keys.
Public Attributes inherited from duckdb::AlterTableInfo
AlterTableType alter_table_type
Public Attributes inherited from duckdb::AlterInfo
AlterType type
OnEntryNotFound if_not_found
 if exists
string catalog
 Catalog name to alter.
string schema
 Schema name to alter.
string name
 Entry name to alter.
bool allow_internal
 Allow altering internal entries.
unique_ptr< LogicalDependencyList > new_dependencies
 New dependencies for the altered entry (set during binding).
Public Attributes inherited from duckdb::ParseInfo
ParseInfoType info_type

Additional Inherited Members

Static Public Attributes inherited from duckdb::AlterInfo
static constexpr const ParseInfoType TYPE = ParseInfoType::ALTER_INFO
Protected Member Functions inherited from duckdb::AlterTableInfo
 AlterTableInfo (AlterTableType type)
Protected Member Functions inherited from duckdb::AlterInfo
 AlterInfo (AlterType type)

Constructor & Destructor Documentation

◆ SetPartitionedByInfo() [1/2]

duckdb::SetPartitionedByInfo::SetPartitionedByInfo ( AlterEntryData data,
vector< unique_ptr< ParsedExpression > > partition_keys )
338824 : AlterTableInfo(AlterTableType::SET_PARTITIONED_BY, std::move(data)), partition_keys(std::move(partition_keys_p)) {
338825}
vector< unique_ptr< ParsedExpression > > partition_keys
The partition keys.
Definition duckdb.hpp:28889

◆ ~SetPartitionedByInfo()

duckdb::SetPartitionedByInfo::~SetPartitionedByInfo ( )
override
338827 {
338828}

◆ SetPartitionedByInfo() [2/2]

duckdb::SetPartitionedByInfo::SetPartitionedByInfo ( )
private
338820 : AlterTableInfo(AlterTableType::SET_PARTITIONED_BY) {
338821}

Member Function Documentation

◆ Copy()

unique_ptr< AlterInfo > duckdb::SetPartitionedByInfo::Copy ( ) const
overridevirtual

Implements duckdb::AlterInfo.

338830 {
338831 vector<unique_ptr<ParsedExpression>> copied_partition_keys;
338832 for (auto &partition_key : partition_keys) {
338833 copied_partition_keys.push_back(partition_key->Copy());
338834 }
338835 return make_uniq_base<AlterInfo, SetPartitionedByInfo>(GetAlterEntryData(), std::move(copied_partition_keys));
338836}

◆ ToString()

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

Implements duckdb::AlterInfo.

338838 {
338839 string result = "ALTER TABLE ";
338840 result += QualifierToString(catalog, schema, name);
338841 if (partition_keys.empty()) {
338842 result += " RESET PARTITIONED BY";
338843 } else {
338844 result += " SET PARTITIONED BY (";
338845 for (idx_t i = 0; i < partition_keys.size(); i++) {
338846 if (i > 0) {
338847 result += ", ";
338848 }
338849 result += partition_keys[i]->ToString();
338850 }
338851 result += ")";
338852 }
338853 return result;
338854}
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237
string catalog
Catalog name to alter.
Definition duckdb.hpp:28312
string name
Entry name to alter.
Definition duckdb.hpp:28316
string schema
Schema name to alter.
Definition duckdb.hpp:28314

◆ Serialize()

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

Reimplemented from duckdb::AlterTableInfo.

418554 {
418555 AlterTableInfo::Serialize(serializer);
418556 serializer.WritePropertyWithDefault<vector<unique_ptr<ParsedExpression>>>(400, "partition_keys", partition_keys);
418557}

◆ Deserialize()

unique_ptr< AlterTableInfo > duckdb::SetPartitionedByInfo::Deserialize ( Deserializer & deserializer)
static
418559 {
418560 auto result = duckdb::unique_ptr<SetPartitionedByInfo>(new SetPartitionedByInfo());
418561 deserializer.ReadPropertyWithDefault<vector<unique_ptr<ParsedExpression>>>(400, "partition_keys", result->partition_keys);
418562 return std::move(result);
418563}

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