#pragma once #include #include #include #include #include namespace DB { /** Поток для вывода данных в формате JSONCompact. */ class JSONCompactRowOutputStream : public JSONRowOutputStream { public: JSONCompactRowOutputStream(WriteBuffer & ostr_, const Block & sample_); void writeField(const IColumn & column, const IDataType & type, size_t row_num) override; void writeFieldDelimiter() override; void writeRowStartDelimiter() override; void writeRowEndDelimiter() override; protected: void writeTotals() override; void writeExtremes() override; }; }