2015-01-21 11:39:48 +00:00
|
|
|
#pragma once
|
|
|
|
|
2017-04-01 09:19:00 +00:00
|
|
|
#include <Dictionaries/IDictionary.h>
|
2015-01-21 11:39:48 +00:00
|
|
|
#include <Poco/Util/AbstractConfiguration.h>
|
2017-07-10 04:34:14 +00:00
|
|
|
#include <ext/singleton.h>
|
2017-01-21 04:24:28 +00:00
|
|
|
|
2015-01-21 11:39:48 +00:00
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
2015-02-03 17:03:35 +00:00
|
|
|
class Context;
|
|
|
|
|
2017-07-10 04:34:14 +00:00
|
|
|
class DictionaryFactory : public ext::singleton<DictionaryFactory>
|
2015-01-21 11:39:48 +00:00
|
|
|
{
|
|
|
|
public:
|
2017-04-01 07:20:54 +00:00
|
|
|
DictionaryPtr create(const std::string & name, Poco::Util::AbstractConfiguration & config,
|
|
|
|
const std::string & config_prefix, Context & context) const;
|
2015-01-21 11:39:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|