mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 18:32:29 +00:00
22 lines
388 B
C++
22 lines
388 B
C++
#pragma once
|
|
#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;
|
|
};
|
|
|
|
}
|