AggregateData

Abstract class for the computation of an aggregate.

Methods
static AggregateData create(Aggregate.AggregateType aggregateType)
Create an AggregateData object of the correct sub-type.
static AggregateData create(Aggregate.AggregateType aggregateType)
Create an AggregateData object of the correct sub-type.
Parameters:
aggregateType - the type of the aggregate operation
Returns:
the aggregate data object of the specified type
void add(Database database, int dataType, boolean distinct, Value v)
Add a value to this aggregate.
void add(Database database, int dataType, boolean distinct, Value v)
Add a value to this aggregate.
Parameters:
database - the database
dataType - the datatype of the computed result
distinct - if the calculation should be distinct
v - the value
Value getValue(Database database, int dataType, boolean distinct)
Get the aggregate result.
Value getValue(Database database, int dataType, boolean distinct)
Get the aggregate result.
Parameters:
database - the database
dataType - the datatype of the computed result
distinct - if distinct is used
Returns:
the value