Class Smalls.MyTwoParamsSumFunctionFilter2

  • Enclosing class:
    Smalls

    public static class Smalls.MyTwoParamsSumFunctionFilter2
    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
      long add​(long accumulator, int v1, java.lang.String v2)  
      long init()  
      long merge​(long accumulator0, long accumulator1)  
      long result​(long accumulator)  
      • Methods inherited from class java.lang.Object

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

      • MyTwoParamsSumFunctionFilter2

        public MyTwoParamsSumFunctionFilter2()
    • Method Detail

      • init

        public long init()
      • add

        public long add​(long accumulator,
                        int v1,
                        java.lang.String v2)
      • merge

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

        public long result​(long accumulator)