|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmondrian.olap.EnumeratedValues.BasicValue
mondrian.rolap.RolapAggregator
mondrian.rolap.RolapAggregator.BaseAggor
mondrian.rolap.RolapAggregator.SumFromAvg
public static class RolapAggregator.SumFromAvg
This is an aggregator used for aggregate tables implementing the sum aggregator. It uses the aggregate table fact_count column and an average measure to create the query used to generate a sum:
sum == sum(column_avg * factcount)If the fact table has both a sum and average over the same column and the aggregate table only has an average and fact count column, then the sum aggregator can be generated using this aggregator.
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.BaseAggor |
---|
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 | |
---|---|
RolapAggregator.SumFromAvg(java.lang.String factCountExpr)
|
Method Summary | |
---|---|
java.lang.String |
getExpression(java.lang.String operand)
Returns the expression to apply this aggregator to an operand. |
Methods inherited from class mondrian.rolap.RolapAggregator.BaseAggor |
---|
aggregate |
Methods inherited from class mondrian.rolap.RolapAggregator |
---|
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 |
Constructor Detail |
---|
public RolapAggregator.SumFromAvg(java.lang.String factCountExpr)
Method Detail |
---|
public java.lang.String getExpression(java.lang.String operand)
RolapAggregator
getExpression("emp.sal")
returns
"sum(emp.sal)"
.
getExpression
in class RolapAggregator
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |