Package mondrian.rolap
Class RolapBaseCubeMeasure
- java.lang.Object
-
- mondrian.olap.OlapElementBase
-
- mondrian.olap.MemberBase
-
- mondrian.rolap.RolapMemberBase
-
- mondrian.rolap.RolapBaseCubeMeasure
-
- All Implemented Interfaces:
Comparable,Annotated,Member,OlapElement,RolapMeasure,RolapMember,RolapStoredMeasure
public class RolapBaseCubeMeasure extends RolapMemberBase implements RolapStoredMeasure
Measure which is computed from a SQL column (or expression) and which is defined in a non-virtual cube.- Since:
- 24 August, 2006
- Author:
- jhyde
- See Also:
RolapVirtualCubeMeasure
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class mondrian.rolap.RolapMemberBase
RolapMemberBase.DefaultPropertyValueMapFactory, RolapMemberBase.PropertyValueMapFactory, RolapMemberBase.PropertyValueMapFactoryFactory
-
Nested classes/interfaces inherited from interface mondrian.olap.Member
Member.MemberType
-
Nested classes/interfaces inherited from interface mondrian.olap.OlapElement
OlapElement.LocalizedProperty
-
-
Field Summary
-
Fields inherited from class mondrian.olap.MemberBase
flags, level, parentMember, uniqueName
-
Fields inherited from class mondrian.olap.OlapElementBase
caption, visible
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description RolapAggregatorgetAggregator()Returns the aggregation function which rolls up this measure: "SUM", "COUNT", etc.Map<String,Annotation>getAnnotationMap()Returns a list of annotations.RolapCubegetCube()Returns the cube this measure belongs to.Dialect.DatatypegetDatatype()mondrian.rolap.RolapResult.ValueFormattergetFormatter()Returns the object that formats cells of this measure, or null to use default formatting.MondrianDef.ExpressiongetMondrianDefExpression()Returns the column which holds the value of the measure.intgetSolveOrder()Returns the solve order of this calculation.ObjectgetStarMeasure()Returns theRolapStar.Measurefrom which this member is computed.voidsetFormatter(CellFormatter cellFormatter)-
Methods inherited from class mondrian.rolap.RolapMemberBase
childLevelHasApproxRowCount, compareTo, containsAggregateFunction, equals, equals, getAllMembers, getCaptionValue, getCompiledExpression, getDepth, getHierarchy, getHierarchyCardinality, getHierarchyOrdinal, getKey, getLevel, getLogger, getName, getOrderKey, getOrdinal, getParentMember, getProperties, getPropertyFormattedValue, getPropertyFromMap, getPropertyValue, getPropertyValue, hashCode, isAllMember, isCalculatedInQuery, isHidden, isParentChildLeaf, keyToString, setCaptionValue, setContextIn, setName, setOrdinal, setOrdinals, setProperty, setUniqueName
-
Methods inherited from class mondrian.olap.MemberBase
computeCalculated, getAncestorMembers, getCaption, getDataMember, getDescription, getDimension, getExpression, getMemberType, getParentUniqueName, getQualifiedName, getSolveOrder, getUniqueName, isAll, isCalculated, isChildOrEqualTo, isChildOrEqualTo, isEvaluated, isMeasure, isNull, isOnSameHierarchyChain, isOnSameHierarchyChainInternal, isParentChildPhysicalMember, lookupChild
-
Methods inherited from class mondrian.olap.OlapElementBase
clone, computeHashCode, getLocalized, isVisible, setCaption, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface mondrian.olap.Member
getAncestorMembers, getDataMember, getDepth, getExpression, getMemberType, getOrderKey, getOrdinal, getParentUniqueName, getProperties, getPropertyFormattedValue, getPropertyValue, getPropertyValue, getSolveOrder, isAll, isCalculated, isCalculatedInQuery, isChildOrEqualTo, isEvaluated, isHidden, isMeasure, isNull, isOnSameHierarchyChain, isParentChildLeaf, isParentChildPhysicalMember, setName, setProperty
-
Methods inherited from interface mondrian.olap.OlapElement
getCaption, getDescription, getDimension, getLocalized, getName, getQualifiedName, getUniqueName, isVisible, lookupChild
-
-
-
-
Method Detail
-
getMondrianDefExpression
public MondrianDef.Expression getMondrianDefExpression()
Description copied from interface:RolapStoredMeasureReturns the column which holds the value of the measure.- Specified by:
getMondrianDefExpressionin interfaceRolapStoredMeasure
-
getAggregator
public RolapAggregator getAggregator()
Description copied from interface:RolapStoredMeasureReturns the aggregation function which rolls up this measure: "SUM", "COUNT", etc.- Specified by:
getAggregatorin interfaceRolapStoredMeasure
-
getCube
public RolapCube getCube()
Description copied from interface:RolapStoredMeasureReturns the cube this measure belongs to.- Specified by:
getCubein interfaceRolapStoredMeasure
-
getFormatter
public mondrian.rolap.RolapResult.ValueFormatter getFormatter()
Description copied from interface:RolapMeasureReturns the object that formats cells of this measure, or null to use default formatting.- Specified by:
getFormatterin interfaceRolapMeasure- Returns:
- formatter
-
setFormatter
public void setFormatter(CellFormatter cellFormatter)
-
getStarMeasure
public Object getStarMeasure()
Description copied from interface:RolapStoredMeasureReturns theRolapStar.Measurefrom which this member is computed. Untyped, because another implementation might store it somewhere else.- Specified by:
getStarMeasurein interfaceRolapStoredMeasure
-
getAnnotationMap
public Map<String,Annotation> getAnnotationMap()
Description copied from interface:AnnotatedReturns a list of annotations.The map may be empty, never null.
- Specified by:
getAnnotationMapin interfaceAnnotated- Overrides:
getAnnotationMapin classRolapMemberBase- Returns:
- Map from annotation name to annotations.
-
getDatatype
public Dialect.Datatype getDatatype()
-
getSolveOrder
public abstract int getSolveOrder()
Returns the solve order of this calculation. Identifies which order calculations are expanded.- Returns:
- Solve order
-
-