LogicalProjection represents the projection list in a SELECT clause.
More...
|
|
static constexpr const LogicalOperatorType | TYPE = LogicalOperatorType::LOGICAL_PROJECTION |
|
| void | ResolveTypes () override |
| | Resolve types for this specific operator.
|
LogicalProjection represents the projection list in a SELECT clause.
◆ LogicalProjection()
382942 : LogicalOperator(LogicalOperatorType::LOGICAL_PROJECTION, std::move(select_list)), table_index(table_index) {
382943}
◆ GetColumnBindings()
Reimplemented from duckdb::LogicalOperator.
382945 {
382946 return GenerateColumnBindings(table_index,
expressions.size());
382947}
vector< unique_ptr< Expression > > expressions
The set of expressions contained within the operator, if any.
Definition duckdb.hpp:21264
◆ Serialize()
| void duckdb::LogicalProjection::Serialize |
( |
Serializer & | serializer | ) |
const |
|
overridevirtual |
Reimplemented from duckdb::LogicalOperator.
416943 {
416944 LogicalOperator::Serialize(serializer);
416945 serializer.WritePropertyWithDefault<
idx_t>(200,
"table_index", table_index);
416946 serializer.WritePropertyWithDefault<vector<unique_ptr<Expression>>>(201,
"expressions",
expressions);
416947}
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237
◆ Deserialize()
416949 {
416950 auto table_index = deserializer.ReadPropertyWithDefault<
idx_t>(200,
"table_index");
416951 auto expressions = deserializer.ReadPropertyWithDefault<vector<unique_ptr<Expression>>>(201,
"expressions");
416952 auto result = duckdb::unique_ptr<LogicalProjection>(
new LogicalProjection(table_index, std::move(
expressions)));
416953 return std::move(result);
416954}
◆ GetTableIndex()
| vector< idx_t > duckdb::LogicalProjection::GetTableIndex |
( |
| ) |
const |
|
overridevirtual |
Returns the set of table indexes of this operator.
Reimplemented from duckdb::LogicalOperator.
382955 {
382956 return vector<idx_t> {table_index};
382957}
◆ GetName()
| string duckdb::LogicalProjection::GetName |
( |
| ) |
const |
|
overridevirtual |
Reimplemented from duckdb::LogicalOperator.
382959 {
382960#ifdef DEBUG
382963 }
382964#endif
382965 return LogicalOperator::GetName();
382966}
static string Format(const string fmt_str, ARGS... params)
Format a string using printf semantics.
Definition duckdb.hpp:4002
static bool debug_print_bindings
Whether to print bindings when printing the plan (debug mode only).
Definition duckdb.hpp:40040
◆ ResolveTypes()
| void duckdb::LogicalProjection::ResolveTypes |
( |
| ) |
|
|
overrideprotectedvirtual |
Resolve types for this specific operator.
Implements duckdb::LogicalOperator.
382949 {
382951 types.push_back(expr->return_type);
382952 }
382953}
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: