1#pragma once
2
3#include <Processors/Formats/Impl/PrettyBlockOutputFormat.h>
4
5
6namespace DB
7{
8
9/** Prints the result, aligned with spaces.
10 */
11class PrettySpaceBlockOutputFormat : public PrettyBlockOutputFormat
12{
13public:
14 PrettySpaceBlockOutputFormat(WriteBuffer & out_, const Block & header, const FormatSettings & format_settings_)
15 : PrettyBlockOutputFormat(out_, header, format_settings_) {}
16
17 String getName() const override { return "PrettySpaceBlockOutputFormat"; }
18
19protected:
20 void write(const Chunk & chunk, PortKind port_kind) override;
21 void writeSuffix() override;
22};
23
24}
25