mondrian.olap
Interface Aggregator

All Known Implementing Classes:
RolapAggregator, RolapAggregator.AvgFromAvg, RolapAggregator.AvgFromSum, RolapAggregator.BaseAggor, RolapAggregator.SumFromAvg

public interface Aggregator

Describes an aggregation operator, such as "sum" or "count".

Since:
Jul 9, 2003$
Version:
$Id: //open/mondrian/src/main/mondrian/olap/Aggregator.java#6 $
Author:
jhyde$
See Also:
FunDef, Evaluator

Method Summary
 java.lang.Object aggregate(Evaluator evaluator, java.util.List members, Calc calc)
          Applies this aggregator to an expression over a set of members and returns the result.
 Aggregator getRollup()
          Returns the aggregator used to combine sub-totals into a grand-total.
 

Method Detail

getRollup

Aggregator getRollup()
Returns the aggregator used to combine sub-totals into a grand-total.


aggregate

java.lang.Object aggregate(Evaluator evaluator,
                           java.util.List members,
                           Calc calc)
Applies this aggregator to an expression over a set of members and returns the result.

Parameters:
evaluator - Evaluation context
members - List of members, not null
calc - Expression to evaluate

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads