mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
20 lines
396 B
C++
20 lines
396 B
C++
#pragma once
|
|
|
|
#include <DB/DataStreams/IBlockOutputStream.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/** Ничего не делает. Используется для отладки и бенчмарков.
|
|
*/
|
|
class NullBlockOutputStream : public IBlockOutputStream
|
|
{
|
|
public:
|
|
NullBlockOutputStream() {}
|
|
void write(const Block & block) {}
|
|
BlockOutputStreamPtr clone() { return new NullBlockOutputStream; }
|
|
};
|
|
|
|
}
|