ClickHouse/dbms/include/DB/DataStreams/NullBlockOutputStream.h

20 lines
396 B
C
Raw Normal View History

2012-05-08 11:19:00 +00:00
#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; }
};
}