cluster_mapping.h 438 B

12345678910111213141516
  1. #pragma once
  2. #include <util/generic/hash.h>
  3. #include <util/generic/maybe.h>
  4. namespace NSQLTranslation {
  5. class TClusterMapping {
  6. public:
  7. explicit TClusterMapping(const THashMap<TString, TString>& mapping);
  8. TMaybe<TString> GetClusterProvider(const TString& cluster, TString& normalizedClusterName) const;
  9. private:
  10. THashMap<TString, TString> CaseSensitiveClusters;
  11. THashMap<TString, TString> CaseInsensitiveClusters;
  12. };
  13. }