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
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 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
-
Method Summary
Modifier and TypeMethodDescriptionApplies this aggregator to an expression over a set of members and returns the result.abstract boolean
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 Details
-
factCountExpr
-
-
Constructor Details
-
BaseAggor
-
-
Method Details
-
aggregate
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() -
getScalarExpression
-