mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-09 18:10:48 +00:00
86eb4d2d06
* - "Arcadia" is the name of Yandex's monorepo.
33 lines
657 B
C++
33 lines
657 B
C++
#pragma once
|
|
|
|
#include <Dictionaries/IDictionarySource.h>
|
|
#include <ext/singleton.h>
|
|
|
|
|
|
namespace Poco
|
|
{
|
|
namespace Util
|
|
{
|
|
class AbstractConfiguration;
|
|
}
|
|
}
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class Context;
|
|
struct DictionaryStructure;
|
|
|
|
/// creates IDictionarySource instance from config and DictionaryStructure
|
|
class DictionarySourceFactory : public ext::singleton<DictionarySourceFactory>
|
|
{
|
|
public:
|
|
DictionarySourceFactory();
|
|
|
|
DictionarySourcePtr create(
|
|
const std::string & name, Poco::Util::AbstractConfiguration & config, const std::string & config_prefix,
|
|
const DictionaryStructure & dict_struct, Context & context) const;
|
|
};
|
|
|
|
}
|