ClickHouse/dbms/include/DB/DataStreams/PrettySpaceBlockOutputStream.h
2016-12-29 23:22:27 +03:00

22 lines
476 B
C++

#pragma once
#include <DB/DataStreams/PrettyBlockOutputStream.h>
namespace DB
{
/** Выводит результат, выравнивая пробелами.
*/
class PrettySpaceBlockOutputStream : public PrettyBlockOutputStream
{
public:
PrettySpaceBlockOutputStream(WriteBuffer & ostr_, bool no_escapes_, size_t max_rows_)
: PrettyBlockOutputStream(ostr_, no_escapes_, max_rows_) {}
void write(const Block & block) override;
void writeSuffix() override;
};
}