aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Processors/Sinks/EmptySink.h
blob: 6f4b167577911cd7dc61fb944637313227174300 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once
#include <Processors/ISink.h>

namespace DB
{

/// Sink which reads everything and do nothing with it.
class EmptySink : public ISink
{
public:
    explicit EmptySink(Block header) : ISink(std::move(header)) {}
    String getName() const override { return "EmptySink"; }

protected:
    void consume(Chunk) override {}
};

}