mondrian.rolap
Class RolapAggregator.BaseAggor

java.lang.Object
  extended by mondrian.olap.EnumeratedValues.BasicValue
      extended by mondrian.rolap.RolapAggregator
          extended by 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.

 

Nested Class Summary
 
Nested classes/interfaces inherited from class mondrian.rolap.RolapAggregator
RolapAggregator.AvgFromAvg, RolapAggregator.AvgFromSum, RolapAggregator.BaseAggor, RolapAggregator.SumFromAvg
 
Field Summary
protected  String factCountExpr
           
 
Fields inherited from class mondrian.rolap.RolapAggregator
Avg, Count, DistinctCount, enumeration, Max, Min, Sum
 
Fields inherited from class mondrian.olap.EnumeratedValues.BasicValue
description, name, ordinal
 
Constructor Summary
protected RolapAggregator.BaseAggor(String name, String factCountExpr)
           
 
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.
 
Methods inherited from class mondrian.rolap.RolapAggregator
getExpression, getNonDistinctAggregator, getRollup, isDistinct
 
Methods inherited from class mondrian.olap.EnumeratedValues.BasicValue
equals, getDescription, getName, getOrdinal, toString, unexpected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

factCountExpr

protected final String factCountExpr
Constructor Detail

RolapAggregator.BaseAggor

protected RolapAggregator.BaseAggor(String name,
                                    String factCountExpr)
Method Detail

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 context
members - List of members, not null
exp - Expression to evaluate

SourceForge.net_Logo