ClickHouse/src/Processors/Formats/Impl/NullFormat.h

22 lines
388 B
C++
Raw Normal View History

2021-10-11 19:21:04 +00:00
#pragma once
2021-10-11 16:11:50 +00:00
#include <Processors/Formats/IOutputFormat.h>
namespace DB
{
class NullOutputFormat final : public IOutputFormat
{
public:
explicit NullOutputFormat(const Block & header) : IOutputFormat(header, empty_buffer) {}
String getName() const override { return "Null"; }
protected:
void consume(Chunk) override {}
private:
static WriteBuffer empty_buffer;
};
}