2017-04-01 09:19:00 +00:00
|
|
|
#include <Functions/FunctionFactory.h>
|
|
|
|
#include <Functions/FunctionsEmbeddedDictionaries.h>
|
2017-03-25 18:11:09 +00:00
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
2017-03-26 00:42:01 +00:00
|
|
|
void registerFunctionsEmbeddedDictionaries(FunctionFactory & factory)
|
2017-03-25 18:11:09 +00:00
|
|
|
{
|
2017-04-01 07:20:54 +00:00
|
|
|
factory.registerFunction<FunctionRegionToCity>();
|
|
|
|
factory.registerFunction<FunctionRegionToArea>();
|
|
|
|
factory.registerFunction<FunctionRegionToDistrict>();
|
|
|
|
factory.registerFunction<FunctionRegionToCountry>();
|
|
|
|
factory.registerFunction<FunctionRegionToContinent>();
|
|
|
|
factory.registerFunction<FunctionRegionToTopContinent>();
|
|
|
|
factory.registerFunction<FunctionRegionToPopulation>();
|
2017-04-19 00:25:57 +00:00
|
|
|
factory.registerFunction<FunctionRegionIn>();
|
|
|
|
factory.registerFunction<FunctionRegionHierarchy>();
|
|
|
|
factory.registerFunction<FunctionRegionToName>();
|
|
|
|
|
|
|
|
#if USE_MYSQL
|
2017-04-01 07:20:54 +00:00
|
|
|
factory.registerFunction<FunctionOSToRoot>();
|
|
|
|
factory.registerFunction<FunctionSEToRoot>();
|
|
|
|
factory.registerFunction<FunctionOSIn>();
|
|
|
|
factory.registerFunction<FunctionSEIn>();
|
|
|
|
factory.registerFunction<FunctionOSHierarchy>();
|
|
|
|
factory.registerFunction<FunctionSEHierarchy>();
|
2017-04-19 00:25:57 +00:00
|
|
|
#endif
|
2017-03-25 18:11:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|