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
25 lines
451 B
C++
25 lines
451 B
C++
#pragma once
|
|
|
|
#include <DataStreams/IBlockInputStream.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/// Empty stream of blocks of specified structure.
|
|
class NullBlockInputStream : public IBlockInputStream
|
|
{
|
|
public:
|
|
NullBlockInputStream(const Block & header_) : header(header_) {}
|
|
|
|
Block getHeader() const override { return header; }
|
|
String getName() const override { return "Null"; }
|
|
|
|
private:
|
|
Block header;
|
|
|
|
Block readImpl() override { return {}; }
|
|
};
|
|
|
|
}
|