Class Smalls.MySumFunction

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

public static class Smalls.MySumFunction extends Object
Example of a user-defined aggregate function (UDAF).
  • Constructor Details

    • MySumFunction

      public MySumFunction()
  • Method Details

    • init

      public long init()
    • add

      public long add(long accumulator, int v)
    • merge

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

      public long result(long accumulator)