ClickHouse/dbms/include/DB/DataStreams/PrettyCompactBlockOutputStream.h
2011-11-28 04:05:53 +00:00

22 lines
610 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#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); }
};
}