|
|
vector< OrderByNode > | orders |
| | The sort keys.
|
|
AlterTableType | alter_table_type |
|
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).
|
|
ParseInfoType | info_type |
|
|
static constexpr const ParseInfoType | TYPE = ParseInfoType::ALTER_INFO |
| | AlterTableInfo (AlterTableType type) |
| | AlterInfo (AlterType type) |
◆ SetSortedByInfo() [1/2]
338863 : AlterTableInfo(AlterTableType::SET_SORTED_BY, std::move(data)),
orders(std::move(orders_p)) {
338864}
vector< OrderByNode > orders
The sort keys.
Definition duckdb.hpp:28909
◆ ~SetSortedByInfo()
| duckdb::SetSortedByInfo::~SetSortedByInfo |
( |
| ) |
|
|
override |
◆ SetSortedByInfo() [2/2]
| duckdb::SetSortedByInfo::SetSortedByInfo |
( |
| ) |
|
|
private |
338859 : AlterTableInfo(AlterTableType::SET_SORTED_BY) {
338860}
◆ Copy()
Implements duckdb::AlterInfo.
338869 {
338870 vector<OrderByNode> copied_orders;
338871 for (
auto &order_key :
orders) {
338872 copied_orders.emplace_back(order_key.type, order_key.null_order, order_key.expression->Copy());
338873 }
338874 return make_uniq_base<AlterInfo, SetSortedByInfo>(GetAlterEntryData(), std::move(copied_orders));
338875}
◆ ToString()
| string duckdb::SetSortedByInfo::ToString |
( |
| ) |
const |
|
overridevirtual |
Implements duckdb::AlterInfo.
338877 {
338878 string result = "ALTER TABLE ";
338881 result += " RESET SORTED BY";
338882 } else {
338883 result += " SET SORTED BY (";
338885 if (i > 0) {
338886 result += ", ";
338887 }
338888 result +=
orders[i].ToString();
338889 }
338890 result += ")";
338891 }
338892 return result;
338893}
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::SetSortedByInfo::Serialize |
( |
Serializer & | serializer | ) |
const |
|
overridevirtual |
Reimplemented from duckdb::AlterTableInfo.
418565 {
418566 AlterTableInfo::Serialize(serializer);
418567 serializer.WritePropertyWithDefault<vector<OrderByNode>>(400,
"orders",
orders);
418568}
◆ Deserialize()
418570 {
418571 auto result = duckdb::unique_ptr<SetSortedByInfo>(new SetSortedByInfo());
418572 deserializer.ReadPropertyWithDefault<vector<OrderByNode>>(400, "orders", result->orders);
418573 return std::move(result);
418574}
The documentation for this struct was generated from the following files: