mondrian.rolap
Class RolapHierarchy.LimitedRollupMember

java.lang.Object
  extended by mondrian.olap.OlapElementBase
      extended by mondrian.olap.MemberBase
          extended by mondrian.rolap.RolapMember
              extended by mondrian.rolap.RolapCubeMember
                  extended by mondrian.rolap.RolapHierarchy.LimitedRollupMember
All Implemented Interfaces:
Comparable, Member, OlapElement
Enclosing class:
RolapHierarchy

public static class RolapHierarchy.LimitedRollupMember
extends RolapCubeMember

Substitute for a member in a hierarchy whose rollup policy is 'partial' or 'hidden'. The member is calculated using an expression which aggregates only visible descendants.

Note that this class extends RolapCubeMember only because other code expects that all members in a RolapCubeHierarchy are RolapCubeMembers.

See Also:
Role.RollupPolicy
 

Nested Class Summary
 
Nested classes/interfaces inherited from interface mondrian.olap.Member
Member.MemberType
 
Field Summary
 RolapMember member
           
 
Fields inherited from class mondrian.rolap.RolapCubeMember
rolapAllMemberCubeName, rolapCube, rolapLevel, rolapMember
 
Fields inherited from class mondrian.olap.MemberBase
flags, level, parentMember, parentUniqueName, uniqueName
 
Fields inherited from class mondrian.olap.OlapElementBase
caption
 
Constructor Summary
RolapHierarchy.LimitedRollupMember(RolapCubeMember member, Exp exp)
           
 
Method Summary
protected  boolean computeCalculated(Member.MemberType memberType)
          Computes the value to be returned by MemberBase.isCalculated(), so it can be cached in a variable.
 boolean equals(Object o)
           
 Exp getExpression()
          Returns the expression by which this member is calculated.
 int hashCode()
           
 boolean isCalculated()
          Returns whether this member is computed using either a with member clause in an mdx query or a calculated member defined in cube.
 
Methods inherited from class mondrian.rolap.RolapCubeMember
compareTo, equals, getCaption, getCube, getDataMember, getDepth, getHierarchy, getKey, getLevel, getMemberType, getName, getOrderKey, getOrdinal, getParentMember, getPropertyFromMap, getPropertyValue, getRolapMember, getSolveOrder, isAll, isCalculatedInQuery, isMeasure, isNull, lookupChild, setOrderKey, setOrdinal, setProperty
 
Methods inherited from class mondrian.rolap.RolapMember
childLevelHasApproxRowCount, getAllMembers, getHierarchyCardinality, getLogger, getProperties, getPropertyFormattedValue, getPropertyValue, isAllMember, isHidden, keyToString, makeUniqueName, setName, setOrdinals, setParentMember, setUniqueName
 
Methods inherited from class mondrian.olap.MemberBase
getAncestorMembers, getDescription, getDimension, getParentUniqueName, getQualifiedName, getUniqueName, isChildOrEqualTo, isChildOrEqualTo, 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
 

Field Detail

member

public final RolapMember member
Constructor Detail

RolapHierarchy.LimitedRollupMember

RolapHierarchy.LimitedRollupMember(RolapCubeMember member,
                                   Exp exp)
Method Detail

equals

public boolean equals(Object o)
Overrides:
equals in class RolapCubeMember

hashCode

public int hashCode()
Overrides:
hashCode in class RolapMember

getExpression

public Exp getExpression()
Description copied from class: MemberBase
Returns the expression by which this member is calculated. The expression is not null if and only if the member is not calculated.

Specified by:
getExpression in interface Member
Overrides:
getExpression in class RolapCubeMember

computeCalculated

protected boolean computeCalculated(Member.MemberType memberType)
Description copied from class: MemberBase
Computes the value to be returned by MemberBase.isCalculated(), so it can be cached in a variable.

Overrides:
computeCalculated in class MemberBase
Parameters:
memberType - Member type
Returns:
Whether this member is calculated

isCalculated

public boolean isCalculated()
Description copied from interface: Member
Returns whether this member is computed using either a with member clause in an mdx query or a calculated member defined in cube.

Specified by:
isCalculated in interface Member
Overrides:
isCalculated in class RolapCubeMember

SourceForge.net_Logo