aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Processors/Formats/Impl/PrettySpaceBlockOutputFormat.h
blob: 1cccd5fb47665d1c3cc3b3f3ea6b0ce616a82b38 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once

#include <Processors/Formats/Impl/PrettyBlockOutputFormat.h>


namespace DB
{

/** Prints the result, aligned with spaces.
  */
class PrettySpaceBlockOutputFormat : public PrettyBlockOutputFormat
{
public:
    PrettySpaceBlockOutputFormat(WriteBuffer & out_, const Block & header, const FormatSettings & format_settings_, bool mono_block_)
        : PrettyBlockOutputFormat(out_, header, format_settings_, mono_block_) {}

    String getName() const override { return "PrettySpaceBlockOutputFormat"; }

private:
    void writeChunk(const Chunk & chunk, PortKind port_kind) override;
    void writeSuffix() override;
};

}