2017-11-27 21:31:13 +00:00
|
|
|
#pragma once
|
|
|
|
|
2017-11-28 22:15:06 +00:00
|
|
|
#include <Dictionaries/Embedded/IGeoDictionariesLoader.h>
|
2017-11-28 11:00:07 +00:00
|
|
|
#include <Interpreters/IExternalLoaderConfigRepository.h>
|
2017-11-27 21:31:13 +00:00
|
|
|
#include <Interpreters/ISecurityManager.h>
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
2017-11-28 00:52:56 +00:00
|
|
|
/** Factory of query engine runtime components / services.
|
|
|
|
* Helps to host query engine in external applications
|
|
|
|
* by replacing or reconfiguring its components.
|
|
|
|
*/
|
2017-11-27 21:31:13 +00:00
|
|
|
class IRuntimeComponentsFactory
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual std::unique_ptr<ISecurityManager> createSecurityManager() = 0;
|
|
|
|
|
2017-11-28 22:15:06 +00:00
|
|
|
virtual std::unique_ptr<IGeoDictionariesLoader> createGeoDictionariesLoader() = 0;
|
|
|
|
|
2017-11-28 11:00:07 +00:00
|
|
|
// Repositories with configurations of user-defined objects (dictionaries, models)
|
|
|
|
virtual std::unique_ptr<IExternalLoaderConfigRepository> createExternalDictionariesConfigRepository() = 0;
|
|
|
|
|
|
|
|
virtual std::unique_ptr<IExternalLoaderConfigRepository> createExternalModelsConfigRepository() = 0;
|
|
|
|
|
2017-11-27 21:31:13 +00:00
|
|
|
virtual ~IRuntimeComponentsFactory() {}
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|