2014-08-22 00:57:20 +00:00
|
|
|
#include <DB/Functions/FunctionFactory.h>
|
|
|
|
#include <DB/Functions/FunctionsArithmetic.h>
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
void registerFunctionsArithmetic(FunctionFactory & factory)
|
|
|
|
{
|
2014-11-12 17:23:26 +00:00
|
|
|
factory.registerFunction<FunctionPlus>();
|
|
|
|
factory.registerFunction<FunctionMinus>();
|
|
|
|
factory.registerFunction<FunctionMultiply>();
|
|
|
|
factory.registerFunction<FunctionDivideFloating>();
|
|
|
|
factory.registerFunction<FunctionDivideIntegral>();
|
2014-11-21 14:28:39 +00:00
|
|
|
factory.registerFunction<FunctionDivideIntegralOrZero>();
|
2014-11-12 17:23:26 +00:00
|
|
|
factory.registerFunction<FunctionModulo>();
|
|
|
|
factory.registerFunction<FunctionNegate>();
|
2014-11-28 16:09:29 +00:00
|
|
|
factory.registerFunction<FunctionAbs>();
|
2014-11-12 17:23:26 +00:00
|
|
|
factory.registerFunction<FunctionBitAnd>();
|
|
|
|
factory.registerFunction<FunctionBitOr>();
|
|
|
|
factory.registerFunction<FunctionBitXor>();
|
|
|
|
factory.registerFunction<FunctionBitNot>();
|
|
|
|
factory.registerFunction<FunctionBitShiftLeft>();
|
|
|
|
factory.registerFunction<FunctionBitShiftRight>();
|
2015-07-10 02:57:32 +00:00
|
|
|
factory.registerFunction<FunctionLeast>();
|
|
|
|
factory.registerFunction<FunctionGreatest>();
|
2014-08-22 00:57:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|