2011-11-28 04:05:53 +00:00
|
|
|
#pragma once
|
|
|
|
|
2017-04-01 09:19:00 +00:00
|
|
|
#include <DataStreams/PrettyBlockOutputStream.h>
|
2011-11-28 04:05:53 +00:00
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
2017-05-13 22:19:04 +00:00
|
|
|
/** Prints the result, aligned with spaces.
|
2011-11-28 04:05:53 +00:00
|
|
|
*/
|
|
|
|
class PrettySpaceBlockOutputStream : public PrettyBlockOutputStream
|
|
|
|
{
|
|
|
|
public:
|
2018-02-19 00:45:32 +00:00
|
|
|
PrettySpaceBlockOutputStream(WriteBuffer & ostr_, const Block & header_, bool no_escapes_, size_t max_rows_, const Context & context_)
|
|
|
|
: PrettyBlockOutputStream(ostr_, header_, no_escapes_, max_rows_, context_) {}
|
2011-11-28 04:05:53 +00:00
|
|
|
|
2017-04-01 07:20:54 +00:00
|
|
|
void write(const Block & block) override;
|
|
|
|
void writeSuffix() override;
|
2011-11-28 04:05:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|