mondrian.rolap
Class RolapAggregator.BaseAggor
java.lang.Object
mondrian.olap.EnumeratedValues.BasicValue
mondrian.rolap.RolapAggregator
mondrian.rolap.RolapAggregator.BaseAggor
- All Implemented Interfaces:
- Aggregator, EnumeratedValues.Value
- Direct Known Subclasses:
- RolapAggregator.AvgFromAvg, RolapAggregator.AvgFromSum, RolapAggregator.SumFromAvg
- Enclosing class:
- RolapAggregator
protected abstract static class RolapAggregator.BaseAggor
- extends RolapAggregator
This is the base class for implementing aggregators over sum and
average columns in an aggregate table. These differ from the above
aggregators in that these require not oly the operand to create
the aggregation String expression, but also, the aggregate table's
fact count column expression.
These aggregators are NOT singletons like the above aggregators; rather,
each is different because of the fact count column expression.
-
-
Method Summary |
Object |
aggregate(Evaluator evaluator,
List members,
Calc exp)
Applies this aggregator to an expression over a set of members and
returns the result. |
factCountExpr
protected final String factCountExpr
RolapAggregator.BaseAggor
protected RolapAggregator.BaseAggor(String name,
String factCountExpr)
aggregate
public Object aggregate(Evaluator evaluator,
List members,
Calc exp)
- Description copied from interface:
Aggregator
- Applies this aggregator to an expression over a set of members and
returns the result.
- Parameters:
evaluator
- Evaluation contextmembers
- List of members, not nullexp
- Expression to evaluate