LogicalOrder represents an ORDER BY clause, sorting the data.
More...
|
|
static constexpr const LogicalOperatorType | TYPE = LogicalOperatorType::LOGICAL_ORDER_BY |
|
| void | ResolveTypes () override |
| | Resolve types for this specific operator.
|
LogicalOrder represents an ORDER BY clause, sorting the data.
◆ LogicalOrder()
382820 : LogicalOperator(LogicalOperatorType::LOGICAL_ORDER_BY), orders(std::move(orders)) {
382821}
◆ GetColumnBindings()
Reimplemented from duckdb::LogicalOperator.
382823 {
382824 auto child_bindings =
children[0]->GetColumnBindings();
382825 if (!HasProjectionMap()) {
382826 return child_bindings;
382827 }
382828 return MapBindings(child_bindings, projection_map);
382829}
vector< unique_ptr< LogicalOperator > > children
The set of children of the operator.
Definition duckdb.hpp:21262
◆ HasProjectionMap()
| bool duckdb::LogicalOrder::HasProjectionMap |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ Serialize()
| void duckdb::LogicalOrder::Serialize |
( |
Serializer & | serializer | ) |
const |
|
overridevirtual |
Reimplemented from duckdb::LogicalOperator.
416908 {
416909 LogicalOperator::Serialize(serializer);
416910 serializer.WritePropertyWithDefault<vector<BoundOrderByNode>>(200, "orders", orders);
416911 serializer.WritePropertyWithDefault<vector<idx_t>>(201, "projections", projection_map);
416912}
◆ Deserialize()
416914 {
416915 auto orders = deserializer.ReadPropertyWithDefault<vector<BoundOrderByNode>>(200, "orders");
416916 auto result = duckdb::unique_ptr<LogicalOrder>(new LogicalOrder(std::move(orders)));
416917 deserializer.ReadPropertyWithDefault<vector<idx_t>>(201, "projections", result->projection_map);
416918 return std::move(result);
416919}
◆ ParamsToString()
Reimplemented from duckdb::LogicalOperator.
382831 {
382832 InsertionOrderPreservingMap<string> result;
382833 string orders_info;
382834 for (
idx_t i = 0; i < orders.size(); i++) {
382835 if (i > 0) {
382836 orders_info += "\n";
382837 }
382838 orders_info += orders[i].expression->GetName();
382839 }
382840 result["__order_by__"] = orders_info;
382841 SetParamsEstimatedCardinality(result);
382842 return result;
382843}
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237
◆ ResolveTypes()
| void duckdb::LogicalOrder::ResolveTypes |
( |
| ) |
|
|
overrideprotectedvirtual |
Resolve types for this specific operator.
Implements duckdb::LogicalOperator.
382845 {
382846 const auto child_types =
children[0]->types;
382847 if (!HasProjectionMap()) {
382848 types = child_types;
382849 } else {
382850 types = MapTypes(child_types, projection_map);
382851 }
382852}
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: