mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 05:03:20 +00:00
22 lines
610 B
C
22 lines
610 B
C
|
#pragma once
|
|||
|
|
|||
|
#include <DB/DataStreams/PrettyBlockOutputStream.h>
|
|||
|
|
|||
|
|
|||
|
namespace DB
|
|||
|
{
|
|||
|
|
|||
|
/** Выводит результат в виде красивых таблиц, но с меньшим количеством строк-разделителей.
|
|||
|
*/
|
|||
|
class PrettyCompactBlockOutputStream : public PrettyBlockOutputStream
|
|||
|
{
|
|||
|
public:
|
|||
|
PrettyCompactBlockOutputStream(WriteBuffer & ostr_, size_t max_rows_ = PRETTY_FORMAT_DEFAULT_MAX_ROWS)
|
|||
|
: PrettyBlockOutputStream(ostr_, max_rows_) {}
|
|||
|
|
|||
|
void write(const Block & block);
|
|||
|
BlockOutputStreamPtr clone() { return new PrettyCompactBlockOutputStream(ostr); }
|
|||
|
};
|
|||
|
|
|||
|
}
|