Class Smalls.MyTwoParamsSumFunctionFilter1

java.lang.Object
org.apache.calcite.util.Smalls.MyTwoParamsSumFunctionFilter1
Enclosing class:
Smalls

public static class Smalls.MyTwoParamsSumFunctionFilter1 extends Object
Example of a user-defined aggregate function (UDAF) with two parameters. The constructor has an initialization parameter.
  • Constructor Details

    • MyTwoParamsSumFunctionFilter1

      public MyTwoParamsSumFunctionFilter1(FunctionContext fx)
  • Method Details

    • init

      public int init()
    • add

      public int add(int accumulator, int v1, int v2)
    • merge

      public int merge(int accumulator0, int accumulator1)
    • result

      public int result(int accumulator)