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