#pragma once #include #include #include namespace DB { struct KeyValuePairExtractor { virtual ~KeyValuePairExtractor() = default; virtual uint64_t extract(const std::string & data, ColumnString::MutablePtr & keys, ColumnString::MutablePtr & values) = 0; virtual uint64_t extract(std::string_view data, ColumnString::MutablePtr & keys, ColumnString::MutablePtr & values) = 0; }; }