#pragma once #include #include #include #include namespace DB { /** Поток для вывода данных в бинарном построчном формате. */ class BinaryRowOutputStream : public IRowOutputStream { public: BinaryRowOutputStream(WriteBuffer & ostr_, const Block & sample_); void writeField(const Field & field); void writeRowEndDelimiter(); void flush() { ostr.next(); } protected: WriteBuffer & ostr; const Block sample; DataTypes data_types; size_t field_number; }; }