aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/IO/EmptyReadBuffer.h
blob: e2189b9943f1e0cc80f13ae6e4def8d4be8394b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include <IO/ReadBuffer.h>

namespace DB
{

/// Just a stub - reads nothing from nowhere.
class EmptyReadBuffer : public ReadBuffer
{
public:
    EmptyReadBuffer() : ReadBuffer(nullptr, 0) {}

private:
    bool nextImpl() override { return false; }
};

}