| 1 | namespace DB |
|---|---|
| 2 | { |
| 3 | |
| 4 | class FunctionFactory; |
| 5 | |
| 6 | void registerFunctionPlus(FunctionFactory & factory); |
| 7 | void registerFunctionMinus(FunctionFactory & factory); |
| 8 | void registerFunctionMultiply(FunctionFactory & factory); |
| 9 | void registerFunctionDivide(FunctionFactory & factory); |
| 10 | void registerFunctionIntDiv(FunctionFactory & factory); |
| 11 | void registerFunctionIntDivOrZero(FunctionFactory & factory); |
| 12 | void registerFunctionModulo(FunctionFactory & factory); |
| 13 | void registerFunctionNegate(FunctionFactory & factory); |
| 14 | void registerFunctionAbs(FunctionFactory & factory); |
| 15 | void registerFunctionBitAnd(FunctionFactory & factory); |
| 16 | void registerFunctionBitOr(FunctionFactory & factory); |
| 17 | void registerFunctionBitXor(FunctionFactory & factory); |
| 18 | void registerFunctionBitNot(FunctionFactory & factory); |
| 19 | void registerFunctionBitShiftLeft(FunctionFactory & factory); |
| 20 | void registerFunctionBitShiftRight(FunctionFactory & factory); |
| 21 | void registerFunctionBitRotateLeft(FunctionFactory & factory); |
| 22 | void registerFunctionBitRotateRight(FunctionFactory & factory); |
| 23 | void registerFunctionLeast(FunctionFactory & factory); |
| 24 | void registerFunctionGreatest(FunctionFactory & factory); |
| 25 | void registerFunctionBitTest(FunctionFactory & factory); |
| 26 | void registerFunctionBitTestAny(FunctionFactory & factory); |
| 27 | void registerFunctionBitTestAll(FunctionFactory & factory); |
| 28 | void registerFunctionGCD(FunctionFactory & factory); |
| 29 | void registerFunctionLCM(FunctionFactory & factory); |
| 30 | void registerFunctionIntExp2(FunctionFactory & factory); |
| 31 | void registerFunctionIntExp10(FunctionFactory & factory); |
| 32 | void registerFunctionRoundToExp2(FunctionFactory & factory); |
| 33 | void registerFunctionRoundDuration(FunctionFactory & factory); |
| 34 | void registerFunctionRoundAge(FunctionFactory & factory); |
| 35 | |
| 36 | void registerFunctionBitBoolMaskOr(FunctionFactory & factory); |
| 37 | void registerFunctionBitBoolMaskAnd(FunctionFactory & factory); |
| 38 | void registerFunctionBitWrapperFunc(FunctionFactory & factory); |
| 39 | void registerFunctionBitSwapLastTwo(FunctionFactory & factory); |
| 40 | |
| 41 | |
| 42 | void registerFunctionsArithmetic(FunctionFactory & factory) |
| 43 | { |
| 44 | registerFunctionPlus(factory); |
| 45 | registerFunctionMinus(factory); |
| 46 | registerFunctionMultiply(factory); |
| 47 | registerFunctionDivide(factory); |
| 48 | registerFunctionIntDiv(factory); |
| 49 | registerFunctionIntDivOrZero(factory); |
| 50 | registerFunctionModulo(factory); |
| 51 | registerFunctionNegate(factory); |
| 52 | registerFunctionAbs(factory); |
| 53 | registerFunctionBitAnd(factory); |
| 54 | registerFunctionBitOr(factory); |
| 55 | registerFunctionBitXor(factory); |
| 56 | registerFunctionBitNot(factory); |
| 57 | registerFunctionBitShiftLeft(factory); |
| 58 | registerFunctionBitShiftRight(factory); |
| 59 | registerFunctionBitRotateLeft(factory); |
| 60 | registerFunctionBitRotateRight(factory); |
| 61 | registerFunctionLeast(factory); |
| 62 | registerFunctionGreatest(factory); |
| 63 | registerFunctionBitTest(factory); |
| 64 | registerFunctionBitTestAny(factory); |
| 65 | registerFunctionBitTestAll(factory); |
| 66 | registerFunctionGCD(factory); |
| 67 | registerFunctionLCM(factory); |
| 68 | registerFunctionIntExp2(factory); |
| 69 | registerFunctionIntExp10(factory); |
| 70 | registerFunctionRoundToExp2(factory); |
| 71 | registerFunctionRoundDuration(factory); |
| 72 | registerFunctionRoundAge(factory); |
| 73 | |
| 74 | /// Not for external use. |
| 75 | registerFunctionBitBoolMaskOr(factory); |
| 76 | registerFunctionBitBoolMaskAnd(factory); |
| 77 | registerFunctionBitWrapperFunc(factory); |
| 78 | registerFunctionBitSwapLastTwo(factory); |
| 79 | } |
| 80 | |
| 81 | } |
| 82 |