//===----------------------------------------------------------------------===// // DuckDB // // duckdb/planner/operator/logical_delim_get.hpp // // //===----------------------------------------------------------------------===// #pragma once #include "duckdb/planner/logical_operator.hpp" namespace duckdb { //! LogicalDelimGet represents a duplicate eliminated scan belonging to a DelimJoin class LogicalDelimGet : public LogicalOperator { public: static constexpr const LogicalOperatorType TYPE = LogicalOperatorType::LOGICAL_DELIM_GET; public: LogicalDelimGet(idx_t table_index, vector types) : LogicalOperator(LogicalOperatorType::LOGICAL_DELIM_GET), table_index(table_index) { D_ASSERT(types.size() > 0); chunk_types = types; } //! The table index in the current bind context idx_t table_index; //! The types of the chunk vector chunk_types; public: vector GetColumnBindings() override { return GenerateColumnBindings(table_index, chunk_types.size()); } 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