| 1 | #pragma once |
|---|---|
| 2 | |
| 3 | #include <DataStreams/IBlockOutputStream.h> |
| 4 | |
| 5 | |
| 6 | namespace DB |
| 7 | { |
| 8 | |
| 9 | /** Does nothing. Used for debugging and benchmarks. |
| 10 | */ |
| 11 | class NullBlockOutputStream : public IBlockOutputStream |
| 12 | { |
| 13 | public: |
| 14 | NullBlockOutputStream(const Block & header_) : header(header_) {} |
| 15 | Block getHeader() const override { return header; } |
| 16 | void write(const Block &) override {} |
| 17 | |
| 18 | private: |
| 19 | Block header; |
| 20 | }; |
| 21 | |
| 22 | } |
| 23 |