mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 11:22:12 +00:00
23 lines
402 B
C++
23 lines
402 B
C++
#pragma once
|
|
|
|
#include <DataStreams/IBlockOutputStream.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/** Does nothing. Used for debugging and benchmarks.
|
|
*/
|
|
class NullBlockOutputStream : public IBlockOutputStream
|
|
{
|
|
public:
|
|
NullBlockOutputStream(const Block & header_) : header(header_) {}
|
|
Block getHeader() const override { return header; }
|
|
void write(const Block &) override {}
|
|
|
|
private:
|
|
Block header;
|
|
};
|
|
|
|
}
|