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