ClickHouse/dbms/include/DB/DataStreams/NullBlockInputStream.h

26 lines
377 B
C
Raw Normal View History

2012-05-30 04:45:49 +00:00
#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();
}
2012-05-30 04:45:49 +00:00
};
}