aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Dictionaries/Embedded/GeodataProviders/HierarchyFormatReader.h
blob: 64f393ada6252f5769b8038938775d126f965621 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include <IO/ReadBuffer.h>
#include "IHierarchiesProvider.h"


// Reads regions hierarchy in geoexport format
class RegionsHierarchyFormatReader : public IRegionsHierarchyReader
{
private:
    DB::ReadBufferPtr input;

public:
    explicit RegionsHierarchyFormatReader(DB::ReadBufferPtr input_) : input(std::move(input_)) {}

    bool readNext(RegionEntry & entry) override;
};