mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-14 11:33:46 +00:00
30 lines
764 B
C++
30 lines
764 B
C++
#pragma once
|
|
|
|
#include <DB/Core/Block.h>
|
|
#include <DB/IO/WriteBuffer.h>
|
|
#include <DB/IO/WriteBufferValidUTF8.h>
|
|
#include <DB/DataStreams/JSONRowOutputStream.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/** Поток для вывода данных в формате JSONCompact.
|
|
*/
|
|
class JSONCompactRowOutputStream : public JSONRowOutputStream
|
|
{
|
|
public:
|
|
JSONCompactRowOutputStream(WriteBuffer & ostr_, const Block & sample_, bool write_statistics_, bool force_quoting_64bit_integers_ = true);
|
|
|
|
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;
|
|
};
|
|
|
|
}
|