//===----------------------------------------------------------------------===// // DuckDB // // duckdb/planner/operator/logical_column_data_get.hpp // // //===----------------------------------------------------------------------===// #pragma once #include "duckdb/common/types/column/column_data_collection.hpp" #include "duckdb/planner/logical_operator.hpp" namespace duckdb { //! LogicalColumnDataGet represents a scan operation from a ColumnDataCollection class LogicalColumnDataGet : public LogicalOperator { public: static constexpr const LogicalOperatorType TYPE = LogicalOperatorType::LOGICAL_CHUNK_GET; public: LogicalColumnDataGet(idx_t table_index, vector types, unique_ptr collection); //! The table index in the current bind context idx_t table_index; //! The types of the chunk vector chunk_types; //! The chunk collection to scan unique_ptr collection; public: vector GetColumnBindings() override; void Serialize(FieldWriter &writer) const override; static unique_ptr Deserialize(LogicalDeserializationState &state, FieldReader &reader); vector GetTableIndex() const override; string GetName() const override; protected: void ResolveTypes() override { // types are resolved in the constructor this->types = chunk_types; } }; } // namespace duckdb