|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Aggregator
Describes an aggregation operator, such as "sum" or "count".
FunDef,
Evaluator| Method Summary | |
|---|---|
Object |
aggregate(Evaluator evaluator,
TupleList members,
Calc calc)
Applies this aggregator to an expression over a set of members and returns the result. |
Object |
aggregate(List<Object> rawData)
Applies this aggregator over a raw list of objects for a rollup operation. |
Aggregator |
getRollup()
Returns the aggregator used to combine sub-totals into a grand-total. |
boolean |
supportsFastAggregates(Dialect.Datatype datatype)
Tells Mondrian if this aggregator can perform fast aggregation using only the raw data of a given object type. |
| Method Detail |
|---|
Aggregator getRollup()
Object aggregate(Evaluator evaluator,
TupleList members,
Calc calc)
evaluator - Evaluation contextmembers - List of members, not nullcalc - Expression to evaluate
boolean supportsFastAggregates(Dialect.Datatype datatype)
aggregate(java.util.List).
This is only invoked for rollup operations.
datatype - The datatype of the object we would like to rollup.
Object aggregate(List<Object> rawData)
SegmentBody object.
Only gets called if
supportsFastAggregates(mondrian.spi.Dialect.Datatype) is true.
This is only invoked for rollup operations.
rawData - An array of values in its raw form, to be aggregated.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||