aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Dictionaries/Embedded/GeodataProviders/NamesFormatReader.h
blob: 49d324d434eb91b15e7b33da3ace489f3df82f73 (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 "INamesProvider.h"


// Reads regions names list in geoexport format
class LanguageRegionsNamesFormatReader : public ILanguageRegionsNamesReader
{
private:
    DB::ReadBufferPtr input;

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

    bool readNext(RegionNameEntry & entry) override;
};