Class Smalls.MyStaticSumFunction

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

public static class Smalls.MyStaticSumFunction extends Object
Example of a user-defined aggregate function (UDAF), whose methods are static.
  • Constructor Details

    • MyStaticSumFunction

      public MyStaticSumFunction()
  • Method Details

    • init

      public static long init()
    • add

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

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

      public static long result(long accumulator)