2011-11-28 04:05:53 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <DB/DataStreams/PrettyBlockOutputStream.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
/** Выводит результат, выравнивая пробелами.
|
|
|
|
*/
|
|
|
|
class PrettySpaceBlockOutputStream : public PrettyBlockOutputStream
|
|
|
|
{
|
|
|
|
public:
|
2016-12-30 00:15:50 +00:00
|
|
|
PrettySpaceBlockOutputStream(WriteBuffer & ostr_, bool no_escapes_, size_t max_rows_, const Context & context_)
|
|
|
|
: PrettyBlockOutputStream(ostr_, no_escapes_, max_rows_, context_) {}
|
2011-11-28 04:05:53 +00:00
|
|
|
|
2014-11-08 23:52:18 +00:00
|
|
|
void write(const Block & block) override;
|
|
|
|
void writeSuffix() override;
|
2011-11-28 04:05:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|