mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-19 14:11:58 +00:00
8b87511e25
find dbms -name '*.h' -or -name '*.cpp' | xargs grep -l -P '}\s*//+\s*namespace\s*' | xargs sed -i -r -e 's/}\s*\/\/+\s*namespace\s*\w+/}/'
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 {}; }
|
|
};
|
|
|
|
}
|