mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-14 03:25:15 +00:00
26 lines
388 B
C++
26 lines
388 B
C++
#pragma once
|
|
|
|
#include <DB/DataStreams/IBlockInputStream.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/** Пустой поток блоков.
|
|
*/
|
|
class NullBlockInputStream : public IBlockInputStream
|
|
{
|
|
public:
|
|
Block read() override { return Block(); }
|
|
String getName() const override { return "Null"; }
|
|
|
|
String getID() const override
|
|
{
|
|
std::stringstream res;
|
|
res << this;
|
|
return res.str();
|
|
}
|
|
};
|
|
|
|
}
|