#pragma once #include #include #include namespace DB { /// Mapping of resource name into path string (e.g. "disk1" -> "/path/to/class") struct ClassifierDescription : std::unordered_map { ClassifierDescription() = default; ClassifierDescription(const Poco::Util::AbstractConfiguration & config, const String & config_prefix); }; /* * Loads a config with the following format: * * * /path/to/queue * /path/to/another/queue * * ... * ... * */ class ClassifiersConfig { public: ClassifiersConfig() = default; explicit ClassifiersConfig(const Poco::Util::AbstractConfiguration & config); const ClassifierDescription & get(const String & classifier_name); private: std::unordered_map classifiers; // by classifier_name }; }