1 | #include "duckdb/planner/operator/logical_delim_get.hpp" |
---|---|
2 | |
3 | #include "duckdb/common/field_writer.hpp" |
4 | #include "duckdb/main/config.hpp" |
5 | |
6 | namespace duckdb { |
7 | |
8 | void LogicalDelimGet::Serialize(FieldWriter &writer) const { |
9 | writer.WriteField(element: table_index); |
10 | writer.WriteRegularSerializableList(elements: chunk_types); |
11 | } |
12 | |
13 | unique_ptr<LogicalOperator> LogicalDelimGet::Deserialize(LogicalDeserializationState &state, FieldReader &reader) { |
14 | auto table_index = reader.ReadRequired<idx_t>(); |
15 | auto chunk_types = reader.ReadRequiredSerializableList<LogicalType, LogicalType>(); |
16 | return make_uniq<LogicalDelimGet>(args&: table_index, args&: chunk_types); |
17 | } |
18 | |
19 | vector<idx_t> LogicalDelimGet::GetTableIndex() const { |
20 | return vector<idx_t> {table_index}; |
21 | } |
22 | |
23 | string LogicalDelimGet::GetName() const { |
24 | #ifdef DEBUG |
25 | if (DBConfigOptions::debug_print_bindings) { |
26 | return LogicalOperator::GetName() + StringUtil::Format(" #%llu", table_index); |
27 | } |
28 | #endif |
29 | return LogicalOperator::GetName(); |
30 | } |
31 | |
32 | } // namespace duckdb |
33 |