Class Smalls.MyThreeParamsSumFunctionWithFilter2

  • Enclosing class:

    public static class Smalls.MyThreeParamsSumFunctionWithFilter2
    extends java.lang.Object
    Example of a user-defined aggregate function (UDAF), whose methods are static. olny for validate to get exact function by calcite
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static long add​(long accumulator, int v1, int v2, int v3)  
      static long init()  
      static long merge​(long accumulator0, long accumulator1)  
      static long result​(long accumulator)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MyThreeParamsSumFunctionWithFilter2

        public MyThreeParamsSumFunctionWithFilter2()
    • Method Detail

      • init

        public static long init()
      • add

        public static long add​(long accumulator,
                               int v1,
                               int v2,
                               int v3)
      • merge

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

        public static long result​(long accumulator)