aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/sql/cluster_mapping.h
blob: c2de216371382db0ca68cd2b89a8903227aab3fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#include <util/generic/hash.h>
#include <util/generic/maybe.h>

namespace NSQLTranslation {
class TClusterMapping {
public:
    explicit TClusterMapping(const THashMap<TString, TString>& mapping);
    TMaybe<TString> GetClusterProvider(const TString& cluster, TString& normalizedClusterName) const;

private:
    THashMap<TString, TString> CaseSensitiveClusters;
    THashMap<TString, TString> CaseInsensitiveClusters;
};
}