ClickHouse/src/DataStreams/MaterializingBlockInputStream.cpp

29 lines
562 B
C++
Raw Normal View History

#include <DataStreams/MaterializingBlockInputStream.h>
2017-11-01 03:09:06 +00:00
#include <DataStreams/materializeBlock.h>
namespace DB
{
MaterializingBlockInputStream::MaterializingBlockInputStream(const BlockInputStreamPtr & input)
{
children.push_back(input);
}
String MaterializingBlockInputStream::getName() const
{
return "Materializing";
}
Block MaterializingBlockInputStream::getHeader() const
{
return materializeBlock(children.back()->getHeader());
}
Block MaterializingBlockInputStream::readImpl()
{
2017-11-01 03:09:06 +00:00
return materializeBlock(children.back()->read());
}
}