mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 05:32:52 +00:00
29 lines
562 B
C++
29 lines
562 B
C++
#include <DataStreams/MaterializingBlockInputStream.h>
|
|
#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()
|
|
{
|
|
return materializeBlock(children.back()->read());
|
|
}
|
|
|
|
}
|