Package 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
public 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
Fields Modifier and Type Field Description 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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Object
aggregate(Evaluator evaluator, TupleList members, Calc exp)
Applies this aggregator to an expression over a set of members and returns the result.abstract boolean
alwaysRequiresFactColumn()
abstract String
getScalarExpression(String operand)
-
Methods inherited from class mondrian.rolap.RolapAggregator
aggregate, getExpression, getNonDistinctAggregator, getRollup, isDistinct, supportsFastAggregates
-
Methods inherited from class mondrian.olap.EnumeratedValues.BasicValue
equals, getDescription, getName, getOrdinal, toString, unexpected
-
-
-
-
Field Detail
-
factCountExpr
protected final String factCountExpr
-
-
Method Detail
-
aggregate
public Object aggregate(Evaluator evaluator, TupleList 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- Returns:
- result of applying this aggregator to a set of members/tuples
-
alwaysRequiresFactColumn
public abstract boolean alwaysRequiresFactColumn()
-
-