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