2019-07-24 18:00:09 +00:00
|
|
|
#include <Processors/Formats/OutputStreamToOutputFormat.h>
|
|
|
|
#include <Processors/Formats/IOutputFormat.h>
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
Block OutputStreamToOutputFormat::getHeader() const
|
|
|
|
{
|
|
|
|
return output_format->getPort(IOutputFormat::PortKind::Main).getHeader();
|
|
|
|
}
|
|
|
|
|
|
|
|
void OutputStreamToOutputFormat::write(const Block & block)
|
|
|
|
{
|
|
|
|
output_format->write(block);
|
|
|
|
}
|
|
|
|
|
2019-07-25 09:28:33 +00:00
|
|
|
void OutputStreamToOutputFormat::writePrefix() { output_format->doWritePrefix(); }
|
|
|
|
void OutputStreamToOutputFormat::writeSuffix() { output_format->doWriteSuffix(); }
|
2019-07-24 18:00:09 +00:00
|
|
|
|
|
|
|
void OutputStreamToOutputFormat::flush() { output_format->flush(); }
|
|
|
|
|
|
|
|
void OutputStreamToOutputFormat::setRowsBeforeLimit(size_t rows_before_limit)
|
|
|
|
{
|
|
|
|
output_format->setRowsBeforeLimit(rows_before_limit);
|
|
|
|
}
|
|
|
|
|
|
|
|
void OutputStreamToOutputFormat::setTotals(const Block & totals) { output_format->setTotals(totals); }
|
|
|
|
void OutputStreamToOutputFormat::setExtremes(const Block & extremes) { output_format->setExtremes(extremes); }
|
|
|
|
|
|
|
|
void OutputStreamToOutputFormat::onProgress(const Progress & progress) { output_format->onProgress(progress); }
|
|
|
|
|
|
|
|
std::string OutputStreamToOutputFormat::getContentType() const { return output_format->getContentType(); }
|
|
|
|
|
|
|
|
}
|