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
Calculated member for
VisualTotals function.
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.PropertyValueMapFactoryFactoryNested classes/interfaces inherited from interface mondrian.olap.Member
Member.MemberTypeNested classes/interfaces inherited from interface mondrian.olap.OlapElement
OlapElement.LocalizedProperty -
Field Summary
Fields inherited from class mondrian.olap.MemberBase
flags, level, parentMember, uniqueNameFields inherited from class mondrian.olap.OlapElementBase
visible -
Method Summary
Modifier and TypeMethodDescriptionintCompares 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.booleanReturns the display name of this catalog element.Returns the system-generated data member that is associated with a nonleaf member of a dimension.Returns the expression by which this member is calculated.intReturns the ordinal of this member within its hierarchy.getPropertyValue(String propertyName, boolean matchCase) Returns the value of the property namedpropertyName, matching according to the required case-sensitivity.Returns the name of this element qualified by its class, for example "hierarchy 'Customers'".intinthashCode()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, setUniqueNameMethods inherited from class mondrian.olap.MemberBase
getAncestorMembers, getDescription, getDimension, getMemberType, getParentUniqueName, getUniqueName, isAll, isCalculated, isChildOrEqualTo, isChildOrEqualTo, isEvaluated, isMeasure, isNull, isOnSameHierarchyChain, isOnSameHierarchyChainInternal, isParentChildPhysicalMember, lookupChildMethods inherited from class mondrian.olap.OlapElementBase
clone, computeHashCode, getLocalized, isVisible, setCaption, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface mondrian.olap.Member
getAncestorMembers, getMemberType, getParentUniqueName, isAll, isCalculated, isChildOrEqualTo, isEvaluated, isMeasure, isNull, isOnSameHierarchyChain, isParentChildPhysicalMemberMethods inherited from interface mondrian.olap.OlapElement
getDescription, getDimension, getLocalized, getUniqueName, isVisible, lookupChild
-
Method Details
-
equals
- Overrides:
equalsin classRolapMemberBase
-
compareTo
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
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
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
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
-
setExpression
-
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
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
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
-
getPropertyValue
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
-