mondrian.rolap
Class RolapBaseCubeMeasure

java.lang.Object
  extended by mondrian.olap.OlapElementBase
      extended by mondrian.olap.MemberBase
          extended by mondrian.rolap.RolapMember
              extended by mondrian.rolap.RolapBaseCubeMeasure
All Implemented Interfaces:
Comparable, Member, OlapElement, RolapMeasure, RolapStoredMeasure

public class RolapBaseCubeMeasure
extends RolapMember
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 interface mondrian.olap.Member
Member.MemberType
 
Field Summary
 
Fields inherited from class mondrian.olap.MemberBase
flags, level, parentMember, parentUniqueName, uniqueName
 
Fields inherited from class mondrian.olap.OlapElementBase
caption
 
Constructor Summary
RolapBaseCubeMeasure(RolapCube cube, RolapMember parentMember, RolapLevel level, String name, String formatString, MondrianDef.Expression expression, String aggregatorName, String datatype)
           
 
Method Summary
 RolapAggregator getAggregator()
          Returns the aggregation function which rolls up this measure: "SUM", "COUNT", etc.
 RolapCube getCube()
          Returns the cube this measure belongs to.
 SqlQuery.Datatype getDatatype()
           
 CellFormatter getFormatter()
          Returns the object that formats cells of this measure, or null to use default formatting.
 MondrianDef.Expression getMondrianDefExpression()
          Returns the column which holds the value of the measure.
 Object getStarMeasure()
          Returns the RolapStar.Measure from which this member is computed.
 void setFormatter(CellFormatter formatter)
           
(package private)  void setStarMeasure(Object starMeasure)
           
 
Methods inherited from class mondrian.rolap.RolapMember
childLevelHasApproxRowCount, compareTo, equals, equals, getAllMembers, getDepth, getHierarchy, getHierarchyCardinality, getKey, getLevel, getLogger, getName, getOrderKey, getOrdinal, getParentMember, getProperties, getPropertyFormattedValue, getPropertyFromMap, getPropertyValue, getPropertyValue, hashCode, isAllMember, isCalculatedInQuery, isHidden, keyToString, makeUniqueName, setName, setOrderKey, setOrdinal, setOrdinals, setParentMember, 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, isMeasure, isNull, lookupChild, lookupChild
 
Methods inherited from class mondrian.olap.OlapElementBase
clone, computeHashCode, setCaption, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface mondrian.olap.Member
getAncestorMembers, getDataMember, getDepth, getExpression, getHierarchy, getLevel, getMemberType, getOrderKey, getOrdinal, getParentMember, getParentUniqueName, getProperties, getPropertyFormattedValue, getPropertyValue, getPropertyValue, getSolveOrder, isAll, isCalculated, isCalculatedInQuery, isChildOrEqualTo, isHidden, isMeasure, isNull, setName, setProperty
 
Methods inherited from interface mondrian.olap.OlapElement
getCaption, getDescription, getDimension, getName, getQualifiedName, getUniqueName, lookupChild, lookupChild
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

RolapBaseCubeMeasure

RolapBaseCubeMeasure(RolapCube cube,
                     RolapMember parentMember,
                     RolapLevel level,
                     String name,
                     String formatString,
                     MondrianDef.Expression expression,
                     String aggregatorName,
                     String datatype)
Method Detail

getMondrianDefExpression

public MondrianDef.Expression getMondrianDefExpression()
Description copied from interface: RolapStoredMeasure
Returns the column which holds the value of the measure.

Specified by:
getMondrianDefExpression in interface RolapStoredMeasure

getAggregator

public RolapAggregator getAggregator()
Description copied from interface: RolapStoredMeasure
Returns the aggregation function which rolls up this measure: "SUM", "COUNT", etc.

Specified by:
getAggregator in interface RolapStoredMeasure

getCube

public RolapCube getCube()
Description copied from interface: RolapStoredMeasure
Returns the cube this measure belongs to.

Specified by:
getCube in interface RolapStoredMeasure

getFormatter

public CellFormatter getFormatter()
Description copied from interface: RolapMeasure
Returns the object that formats cells of this measure, or null to use default formatting.

Specified by:
getFormatter in interface RolapMeasure
Returns:
formatter

setFormatter

public void setFormatter(CellFormatter formatter)

getStarMeasure

public Object getStarMeasure()
Description copied from interface: RolapStoredMeasure
Returns the RolapStar.Measure from which this member is computed. Untyped, because another implementation might store it somewhere else.

Specified by:
getStarMeasure in interface RolapStoredMeasure

setStarMeasure

void setStarMeasure(Object starMeasure)

getDatatype

public SqlQuery.Datatype getDatatype()

SourceForge.net_Logo