Package mondrian.olap.fun
Class VisualTotalsFunDef.VisualTotalMember
- java.lang.Object
-
- mondrian.olap.OlapElementBase
-
- mondrian.olap.MemberBase
-
- mondrian.rolap.RolapMemberBase
-
- mondrian.olap.fun.VisualTotalsFunDef.VisualTotalMember
-
- All Implemented Interfaces:
Comparable,Annotated,Member,OlapElement,RolapMember
- Enclosing class:
- VisualTotalsFunDef
public static class VisualTotalsFunDef.VisualTotalMember extends RolapMemberBase
Calculated member forVisualTotalsfunction.It corresponds to a real member, and most of its properties are similar. The main differences are:
- its name is derived from the VisualTotals pattern, e.g. "*Subtotal - Dairy" as opposed to "Dairy"
- its value is a calculation computed by aggregating all of the members which occur following it in the list
-
-
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
visible
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Object o)Compares this member to anotherRolapMemberBase.protected booleancomputeCalculated(Member.MemberType memberType)Computes the value to be returned byMemberBase.isCalculated(), so it can be cached in a variable.booleanequals(Object o)StringgetCaption()Returns the display name of this catalog element.MembergetDataMember()Returns the system-generated data member that is associated with a nonleaf member of a dimension.ExpgetExpression()Returns the expression by which this member is calculated.MembergetMember()intgetOrdinal()Returns the ordinal of this member within its hierarchy.ObjectgetPropertyValue(String propertyName, boolean matchCase)Returns the value of the property namedpropertyName, matching according to the required case-sensitivity.StringgetQualifiedName()Returns the name of this element qualified by its class, for example "hierarchy 'Customers'".intgetSolveOrder()inthashCode()voidsetExpression(Evaluator evaluator, List<Member> childMembers)voidsetExpression(Exp exp)-
Methods inherited from class mondrian.rolap.RolapMemberBase
childLevelHasApproxRowCount, containsAggregateFunction, equals, getAllMembers, getAnnotationMap, getCaptionValue, getCompiledExpression, getDepth, getHierarchy, getHierarchyCardinality, getHierarchyOrdinal, getKey, getLevel, getLogger, getName, getOrderKey, getParentMember, getProperties, getPropertyFormattedValue, getPropertyFromMap, getPropertyValue, isAllMember, isCalculatedInQuery, isHidden, isParentChildLeaf, keyToString, setCaptionValue, setContextIn, setName, setOrdinal, setOrdinals, setProperty, setUniqueName
-
Methods inherited from class mondrian.olap.MemberBase
getAncestorMembers, getDescription, getDimension, getMemberType, getParentUniqueName, 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 mondrian.olap.Member
getAncestorMembers, getMemberType, getParentUniqueName, isAll, isCalculated, isChildOrEqualTo, isEvaluated, isMeasure, isNull, isOnSameHierarchyChain, isParentChildPhysicalMember
-
Methods inherited from interface mondrian.olap.OlapElement
getDescription, getDimension, getLocalized, getUniqueName, isVisible, lookupChild
-
-
-
-
Method Detail
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classRolapMemberBase
-
compareTo
public int compareTo(Object o)
Description copied from class:RolapMemberBaseCompares this member to anotherRolapMemberBase.The method first compares on keys; null keys always collate last. If the keys are equal, it compares using unique name.
This method does not consider
RolapMemberBase.ordinalfield, because ordinal is only unique within a parent. If you want to compare members which may be at any position in the hierarchy, useFunUtil.compareHierarchically(mondrian.olap.Member, mondrian.olap.Member, boolean).- Specified by:
compareToin interfaceComparable- Overrides:
compareToin classRolapMemberBase- Returns:
- -1 if this is less, 0 if this is the same, 1 if this is greater
-
hashCode
public int hashCode()
- Overrides:
hashCodein classRolapMemberBase
-
getCaption
public String getCaption()
Description copied from class:OlapElementBaseReturns the display name of this catalog element. If no caption is defined, the name is returned.- Specified by:
getCaptionin interfaceOlapElement- Overrides:
getCaptionin classMemberBase
-
computeCalculated
protected boolean computeCalculated(Member.MemberType memberType)
Description copied from class:MemberBaseComputes the value to be returned byMemberBase.isCalculated(), so it can be cached in a variable.- Overrides:
computeCalculatedin classMemberBase- Parameters:
memberType- Member type- Returns:
- Whether this member is calculated
-
getSolveOrder
public int getSolveOrder()
- Specified by:
getSolveOrderin interfaceMember- Overrides:
getSolveOrderin classMemberBase
-
getExpression
public Exp getExpression()
Description copied from class:MemberBaseReturns the expression by which this member is calculated. The expression is not null if and only if the member is not calculated.- Specified by:
getExpressionin interfaceMember- Overrides:
getExpressionin classMemberBase
-
setExpression
public void setExpression(Exp exp)
-
getOrdinal
public int getOrdinal()
Description copied from class:MemberBaseReturns the ordinal of this member within its hierarchy. The default implementation returns -1.- Specified by:
getOrdinalin interfaceMember- Overrides:
getOrdinalin classRolapMemberBase
-
getDataMember
public Member getDataMember()
Description copied from interface:MemberReturns the system-generated data member that is associated with a nonleaf member of a dimension.Returns this member if this member is a leaf member, or if the nonleaf member does not have an associated data member.
- Specified by:
getDataMemberin interfaceMember- Overrides:
getDataMemberin classMemberBase
-
getQualifiedName
public String getQualifiedName()
Description copied from interface:OlapElementReturns the name of this element qualified by its class, for example "hierarchy 'Customers'".- Specified by:
getQualifiedNamein interfaceOlapElement- Overrides:
getQualifiedNamein classMemberBase
-
getMember
public Member getMember()
-
getPropertyValue
public Object getPropertyValue(String propertyName, boolean matchCase)
Description copied from interface:MemberReturns the value of the property namedpropertyName, matching according to the required case-sensitivity.- Specified by:
getPropertyValuein interfaceMember- Overrides:
getPropertyValuein classRolapMemberBase
-
-