ClickHouse/src/DataStreams/formatBlock.cpp

17 lines
284 B
C++
Raw Normal View History

2021-07-29 14:39:42 +00:00
#include <Core/Block.h>
#include <DataStreams/IBlockOutputStream.h>
#include <DataStreams/formatBlock.h>
namespace DB
{
2021-08-25 19:30:22 +00:00
2021-07-29 14:39:42 +00:00
void formatBlock(BlockOutputStreamPtr & out, const Block & block)
{
out->writePrefix();
out->write(block);
out->writeSuffix();
out->flush();
}
}