ClickHouse/dbms/src/Dictionaries/DictionarySourceFactory.h

33 lines
655 B
C++
Raw Normal View History

#pragma once
#include <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
{
namespace Util
{
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:
DictionarySourceFactory();
DictionarySourcePtr create(
const std::string & name, Poco::Util::AbstractConfiguration & config, const std::string & config_prefix,
const DictionaryStructure & dict_struct, Context & context) const;
};
}