mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-05 15:21:43 +00:00
fafecb3c25
* Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development): removed very old tests #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447
32 lines
742 B
C++
32 lines
742 B
C++
#pragma once
|
|
|
|
#include <Core/Block.h>
|
|
#include <IO/WriteBuffer.h>
|
|
#include <IO/WriteBufferValidUTF8.h>
|
|
#include <Formats/JSONRowOutputStream.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
struct FormatSettings;
|
|
|
|
/** The stream for outputting data in the JSONCompact format.
|
|
*/
|
|
class JSONCompactRowOutputStream : public JSONRowOutputStream
|
|
{
|
|
public:
|
|
JSONCompactRowOutputStream(WriteBuffer & ostr_, const Block & sample_, const FormatSettings & settings);
|
|
|
|
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;
|
|
};
|
|
|
|
}
|