Class Smalls.MyTwoParamsSumFunctionFilter2

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

public static class Smalls.MyTwoParamsSumFunctionFilter2 extends Object
Another example of a user-defined aggregate function (UDAF) with two parameters.
  • Constructor Details

    • MyTwoParamsSumFunctionFilter2

      public MyTwoParamsSumFunctionFilter2()
  • Method Details

    • init

      public long init()
    • add

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

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

      public long result(long accumulator)