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>
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
|
|
|
|
}
|