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$
Author:
jhyde$
See Also:
FunDef, Evaluator
 

Method Summary
 Object aggregate(Evaluator evaluator, 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

Object aggregate(Evaluator evaluator,
                 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

SourceForge.net_Logo