| 1 | #pragma once | 
|---|
| 2 |  | 
|---|
| 3 | #include <Processors/Formats/Impl/PrettyBlockOutputFormat.h> | 
|---|
| 4 |  | 
|---|
| 5 |  | 
|---|
| 6 | namespace DB | 
|---|
| 7 | { | 
|---|
| 8 |  | 
|---|
| 9 | /** Prints the result in the form of beautiful tables, but with fewer delimiter lines. | 
|---|
| 10 | */ | 
|---|
| 11 | class PrettyCompactBlockOutputFormat : public PrettyBlockOutputFormat | 
|---|
| 12 | { | 
|---|
| 13 | public: | 
|---|
| 14 | PrettyCompactBlockOutputFormat(WriteBuffer & out_, const Block & , const FormatSettings & format_settings_) | 
|---|
| 15 | : PrettyBlockOutputFormat(out_, header, format_settings_) {} | 
|---|
| 16 |  | 
|---|
| 17 | String getName() const override { return "PrettyCompactBlockOutputFormat"; } | 
|---|
| 18 |  | 
|---|
| 19 | protected: | 
|---|
| 20 | void write(const Chunk & chunk, PortKind port_kind) override; | 
|---|
| 21 | void (const Block & block, const Widths & max_widths, const Widths & name_widths); | 
|---|
| 22 | void writeBottom(const Widths & max_widths); | 
|---|
| 23 | void writeRow( | 
|---|
| 24 | size_t row_num, | 
|---|
| 25 | const Block & , | 
|---|
| 26 | const Columns & columns, | 
|---|
| 27 | const WidthsPerColumn & widths, | 
|---|
| 28 | const Widths & max_widths); | 
|---|
| 29 | }; | 
|---|
| 30 |  | 
|---|
| 31 | } | 
|---|
| 32 |  | 
|---|