butler.sql.function
Class Sum

java.lang.Object
  extended by butler.sql.function.Sum
All Implemented Interfaces:
AggregateFunction, Function, NumericAggregateFunction

public class Sum
extends java.lang.Object
implements NumericAggregateFunction

sum function.

Author:
Fredrik Bertilsson

Nested Class Summary
 
Nested classes/interfaces inherited from interface butler.sql.function.Function
Function.Call
 
Constructor Summary
Sum()
           
 
Method Summary
 java.lang.Double calculate(java.util.Iterator i)
           
 java.lang.String getName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sum

public Sum()
Method Detail

calculate

public java.lang.Double calculate(java.util.Iterator i)
                           throws java.lang.Exception
Specified by:
calculate in interface NumericAggregateFunction
Throws:
java.lang.Exception

getName

public java.lang.String getName()
Specified by:
getName in interface Function