ClickHouse/dbms/src/Interpreters/RuntimeComponentsFactory.h

39 lines
1.0 KiB
C++
Raw Normal View History

#pragma once
#include <Dictionaries/Embedded/GeoDictionariesLoader.h>
#include <Interpreters/ExternalLoaderConfigRepository.h>
#include <Interpreters/IRuntimeComponentsFactory.h>
#include <Interpreters/UsersManager.h>
namespace DB
{
2017-11-28 00:52:56 +00:00
/** Default implementation of runtime components factory
* used by native server application.
*/
class RuntimeComponentsFactory : public IRuntimeComponentsFactory
{
public:
std::unique_ptr<IUsersManager> createUsersManager() override
{
return std::make_unique<UsersManager>();
}
std::unique_ptr<IGeoDictionariesLoader> createGeoDictionariesLoader() override
{
return std::make_unique<GeoDictionariesLoader>();
}
2017-12-01 16:25:27 +00:00
std::unique_ptr<IExternalLoaderConfigRepository> createExternalDictionariesConfigRepository() override
{
2017-11-29 12:41:42 +00:00
return std::make_unique<ExternalLoaderConfigRepository>();
}
std::unique_ptr<IExternalLoaderConfigRepository> createExternalModelsConfigRepository() override
{
return std::make_unique<ExternalLoaderConfigRepository>();
}
};
}