butler.sql.function
Class Count

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

public class Count
extends java.lang.Object
implements NumericAggregateFunction

count function.

Author:
Fredrik Bertilsson

Nested Class Summary
 
Nested classes/interfaces inherited from interface butler.sql.function.Function
Function.Call
 
Constructor Summary
Count()
           
 
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

Count

public Count()
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