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 SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
MyStaticSumFunctionpublic MyStaticSumFunction()
 
- 
- 
Method Details- 
initpublic static long init()
- 
addpublic static long add(long accumulator, int v) 
- 
mergepublic static long merge(long accumulator0, long accumulator1) 
- 
resultpublic static long result(long accumulator) 
 
-