Package org.apache.calcite.util
Class Smalls.MyTwoParamsSumFunctionFilter1
java.lang.Object
org.apache.calcite.util.Smalls.MyTwoParamsSumFunctionFilter1
- Enclosing class:
Smalls
Example of a user-defined aggregate function (UDAF) with two parameters.
The constructor has an initialization parameter.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
MyTwoParamsSumFunctionFilter1
-
-
Method Details
-
init
public int init() -
add
public int add(int accumulator, int v1, int v2) -
merge
public int merge(int accumulator0, int accumulator1) -
result
public int result(int accumulator)
-