mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 04:12:19 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
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());
|
|
}
|
|
|
|
}
|