ClickHouse/src/Processors/Formats/Impl/PrettySpaceBlockOutputFormat.h

25 lines
636 B
C++
Raw Normal View History

2019-02-19 18:41:18 +00:00
#pragma once
#include <Processors/Formats/Impl/PrettyBlockOutputFormat.h>
namespace DB
{
/** Prints the result, aligned with spaces.
*/
class PrettySpaceBlockOutputFormat : public PrettyBlockOutputFormat
{
public:
2022-07-27 11:37:02 +00:00
PrettySpaceBlockOutputFormat(WriteBuffer & out_, const Block & header, const FormatSettings & format_settings_, bool mono_block_)
: PrettyBlockOutputFormat(out_, header, format_settings_, mono_block_) {}
2019-02-19 18:41:18 +00:00
String getName() const override { return "PrettySpaceBlockOutputFormat"; }
2021-11-02 13:40:41 +00:00
private:
2022-07-27 11:37:02 +00:00
void writeChunk(const Chunk & chunk, PortKind port_kind) override;
2019-02-19 18:41:18 +00:00
void writeSuffix() override;
};
}