ClickHouse/dbms/include/DB/Dictionaries/DictionarySourceFactory.h

33 lines
625 B
C++
Raw Normal View History

#pragma once
2016-12-08 02:49:04 +00:00
#include <DB/Dictionaries/IDictionarySource.h>
2015-09-29 19:19:54 +00:00
#include <common/singleton.h>
2016-01-12 02:21:15 +00:00
2016-12-08 02:49:04 +00:00
namespace Poco
{
2016-12-08 02:49:04 +00:00
namespace Util
{
2016-12-08 02:49:04 +00:00
class AbstractConfiguration;
}
}
2016-12-08 02:49:04 +00:00
namespace DB
{
class Context;
2016-12-12 06:02:35 +00:00
struct DictionaryStructure;
/// creates IDictionarySource instance from config and DictionaryStructure
class DictionarySourceFactory : public Singleton<DictionarySourceFactory>
{
public:
2017-03-09 04:26:17 +00:00
DictionarySourceFactory();
DictionarySourcePtr create(
const std::string & name, Poco::Util::AbstractConfiguration & config, const std::string & config_prefix,
2016-12-08 02:49:04 +00:00
const DictionaryStructure & dict_struct, Context & context) const;
};
}