aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Processors/Formats/Impl/NullFormat.h
blob: 3362131c4d3dd758ad91921f9a15c71eb28029f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once
#include <Processors/Formats/IOutputFormat.h>

namespace DB
{

class WriteBufferFromPointer;

class NullOutputFormat final : public IOutputFormat
{
public:
    explicit NullOutputFormat(const Block & header);

    String getName() const override { return "Null"; }

protected:
    void consume(Chunk) override {}

private:
    static WriteBufferFromPointer empty_buffer;
};

}