Package org.apache.calcite.util
Class Smalls.MyStaticSumFunction
java.lang.Object
org.apache.calcite.util.Smalls.MyStaticSumFunction
- Enclosing class:
Smalls
Example of a user-defined aggregate function (UDAF), whose methods are
static.
-
Constructor Summary
-
Method Summary
-
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)
-