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