Class Smalls.MyTwoParamsSumFunctionFilter1

  • Enclosing class:

    public static class Smalls.MyTwoParamsSumFunctionFilter1
    extends java.lang.Object
    Example of a user-defined aggregate function (UDAF).
    • Method Summary

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

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

      • MyTwoParamsSumFunctionFilter1

        public MyTwoParamsSumFunctionFilter1()
    • Method Detail

      • 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)