ClickHouse/dbms/include/DB/DataStreams/PrettySpaceBlockOutputStream.h

22 lines
499 B
C
Raw Normal View History

2011-11-28 04:05:53 +00:00
#pragma once
#include <DB/DataStreams/PrettyBlockOutputStream.h>
namespace DB
{
/** Выводит результат, выравнивая пробелами.
*/
class PrettySpaceBlockOutputStream : public PrettyBlockOutputStream
{
public:
2012-06-25 05:07:34 +00:00
PrettySpaceBlockOutputStream(WriteBuffer & ostr_, bool no_escapes_ = false, size_t max_rows_ = PRETTY_FORMAT_DEFAULT_MAX_ROWS)
: PrettyBlockOutputStream(ostr_, no_escapes_, max_rows_) {}
2011-11-28 04:05:53 +00:00
void write(const Block & block);
void writeSuffix();
};
}