org.axiondb.functions
Class ComparableAggregateFunction

java.lang.Object
  extended by org.axiondb.BaseSelectable
      extended by org.axiondb.functions.BaseFunction
          extended by org.axiondb.functions.BaseAggregateFunction
              extended by org.axiondb.functions.ComparableAggregateFunction
All Implemented Interfaces:
Serializable, Function, AggregateFunction, ConcreteFunction, Selectable
Direct Known Subclasses:
MaxFunction, MinFunction

public abstract class ComparableAggregateFunction
extends BaseAggregateFunction
implements AggregateFunction

Version:
$Revision: 1.1 $ $Date: 2005/08/24 00:41:52 $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.axiondb.BaseSelectable
_hash
 
Constructor Summary
ComparableAggregateFunction(String name)
           
 
Method Summary
protected abstract  Comparable evaluate(Comparable src, Comparable val)
           
 Object evaluate(RowDecoratorIterator rows)
           
 DataType getDataType()
           
 
Methods inherited from class org.axiondb.functions.BaseAggregateFunction
acceptable, evaluate, isDistinct, isValid, setDistinct, setDistinct
 
Methods inherited from class org.axiondb.functions.BaseFunction
addArgument, getArgument, getArgumentCount, setArgument, setVariableContext, toString
 
Methods inherited from class org.axiondb.BaseSelectable
getAlias, getLabel, getName, setAlias, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.axiondb.functions.ConcreteFunction
isValid
 
Methods inherited from interface org.axiondb.Function
addArgument, getAlias, getArgument, getArgumentCount, getName, setAlias, setArgument
 
Methods inherited from interface org.axiondb.Selectable
evaluate, getLabel, setVariableContext
 

Constructor Detail

ComparableAggregateFunction

public ComparableAggregateFunction(String name)
Method Detail

getDataType

public final DataType getDataType()
Specified by:
getDataType in interface Selectable
Specified by:
getDataType in class BaseFunction

evaluate

public final Object evaluate(RowDecoratorIterator rows)
                      throws AxionException
Specified by:
evaluate in interface AggregateFunction
Throws:
AxionException

evaluate

protected abstract Comparable evaluate(Comparable src,
                                       Comparable val)