ClickHouse/dbms/src/Functions/FunctionsArithmetic.cpp
2015-07-10 05:57:32 +03:00

29 lines
976 B
C++

#include <DB/Functions/FunctionFactory.h>
#include <DB/Functions/FunctionsArithmetic.h>
namespace DB
{
void registerFunctionsArithmetic(FunctionFactory & factory)
{
factory.registerFunction<FunctionPlus>();
factory.registerFunction<FunctionMinus>();
factory.registerFunction<FunctionMultiply>();
factory.registerFunction<FunctionDivideFloating>();
factory.registerFunction<FunctionDivideIntegral>();
factory.registerFunction<FunctionDivideIntegralOrZero>();
factory.registerFunction<FunctionModulo>();
factory.registerFunction<FunctionNegate>();
factory.registerFunction<FunctionAbs>();
factory.registerFunction<FunctionBitAnd>();
factory.registerFunction<FunctionBitOr>();
factory.registerFunction<FunctionBitXor>();
factory.registerFunction<FunctionBitNot>();
factory.registerFunction<FunctionBitShiftLeft>();
factory.registerFunction<FunctionBitShiftRight>();
factory.registerFunction<FunctionLeast>();
factory.registerFunction<FunctionGreatest>();
}
}