mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-17 03:42:48 +00:00
33 lines
625 B
C++
33 lines
625 B
C++
#pragma once
|
|
|
|
#include <DB/Dictionaries/IDictionarySource.h>
|
|
#include <common/singleton.h>
|
|
|
|
|
|
namespace Poco
|
|
{
|
|
namespace Util
|
|
{
|
|
class AbstractConfiguration;
|
|
}
|
|
}
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class Context;
|
|
struct DictionaryStructure;
|
|
|
|
/// creates IDictionarySource instance from config and DictionaryStructure
|
|
class DictionarySourceFactory : public 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;
|
|
};
|
|
|
|
}
|