ClickHouse/dbms/src/Functions/registerFunctions.cpp

93 lines
3.5 KiB
C++
Raw Normal View History

2017-04-21 17:47:27 +00:00
#include <Functions/FunctionFactory.h>
2019-03-29 01:02:05 +00:00
#include <Functions/registerFunctions.h>
#include <Common/config.h>
2017-04-21 17:47:27 +00:00
namespace DB
{
/** These functions are defined in a separate translation units.
* This is done in order to reduce the consumption of RAM during build, and to speed up the parallel build.
*/
void registerFunctionsArithmetic(FunctionFactory &);
void registerFunctionsArray(FunctionFactory &);
void registerFunctionsTuple(FunctionFactory &);
void registerFunctionsBitmap(FunctionFactory &);
2017-04-21 17:47:27 +00:00
void registerFunctionsCoding(FunctionFactory &);
void registerFunctionsComparison(FunctionFactory &);
void registerFunctionsConditional(FunctionFactory &);
void registerFunctionsConversion(FunctionFactory &);
void registerFunctionsDateTime(FunctionFactory &);
void registerFunctionsEmbeddedDictionaries(FunctionFactory &);
void registerFunctionsExternalDictionaries(FunctionFactory &);
void registerFunctionsExternalModels(FunctionFactory &);
2017-04-21 17:47:27 +00:00
void registerFunctionsFormatting(FunctionFactory &);
void registerFunctionsHashing(FunctionFactory &);
void registerFunctionsConsistentHashing(FunctionFactory &);
2017-04-21 17:47:27 +00:00
void registerFunctionsHigherOrder(FunctionFactory &);
void registerFunctionsLogical(FunctionFactory &);
void registerFunctionsMiscellaneous(FunctionFactory &);
void registerFunctionsRandom(FunctionFactory &);
void registerFunctionsReinterpret(FunctionFactory &);
void registerFunctionsRound(FunctionFactory &);
void registerFunctionsString(FunctionFactory &);
void registerFunctionsStringArray(FunctionFactory &);
void registerFunctionsStringSearch(FunctionFactory &);
2019-03-29 01:02:05 +00:00
void registerFunctionsStringRegex(FunctionFactory &);
void registerFunctionsStringSimilarity(FunctionFactory &);
2017-04-21 17:47:27 +00:00
void registerFunctionsURL(FunctionFactory &);
void registerFunctionsVisitParam(FunctionFactory &);
void registerFunctionsMath(FunctionFactory &);
void registerFunctionsGeo(FunctionFactory &);
void registerFunctionsNull(FunctionFactory &);
void registerFunctionsFindCluster(FunctionFactory &);
void registerFunctionTransform(FunctionFactory &);
2017-04-21 17:47:27 +00:00
#if USE_ICU
void registerFunctionConvertCharset(FunctionFactory &);
#endif
2017-04-21 17:47:27 +00:00
void registerFunctions()
{
auto & factory = FunctionFactory::instance();
registerFunctionsArithmetic(factory);
registerFunctionsArray(factory);
registerFunctionsTuple(factory);
registerFunctionsBitmap(factory);
2017-04-21 17:47:27 +00:00
registerFunctionsCoding(factory);
registerFunctionsComparison(factory);
registerFunctionsConditional(factory);
registerFunctionsConversion(factory);
registerFunctionsDateTime(factory);
registerFunctionsEmbeddedDictionaries(factory);
registerFunctionsExternalDictionaries(factory);
registerFunctionsExternalModels(factory);
2017-04-21 17:47:27 +00:00
registerFunctionsFormatting(factory);
registerFunctionsHashing(factory);
registerFunctionsConsistentHashing(factory);
2017-04-21 17:47:27 +00:00
registerFunctionsHigherOrder(factory);
registerFunctionsLogical(factory);
registerFunctionsMiscellaneous(factory);
registerFunctionsRandom(factory);
registerFunctionsReinterpret(factory);
registerFunctionsRound(factory);
registerFunctionsString(factory);
registerFunctionsStringArray(factory);
registerFunctionsStringSearch(factory);
2019-03-29 01:02:05 +00:00
registerFunctionsStringRegex(factory);
registerFunctionsStringSimilarity(factory);
2017-04-21 17:47:27 +00:00
registerFunctionsURL(factory);
registerFunctionsVisitParam(factory);
registerFunctionsMath(factory);
registerFunctionsGeo(factory);
registerFunctionsNull(factory);
registerFunctionsFindCluster(factory);
registerFunctionTransform(factory);
#if USE_ICU
registerFunctionConvertCharset(factory);
#endif
2017-04-21 17:47:27 +00:00
}
}