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.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
Modifier and TypeMethodDescriptionint
Compares this member to anotherRolapMemberBase
.protected boolean
computeCalculated
(Member.MemberType memberType) Computes the value to be returned byMemberBase.isCalculated()
, so it can be cached in a variable.boolean
Returns 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.int
Returns 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'".int
int
hashCode()
void
setExpression
(Evaluator evaluator, List<Member> childMembers) void
setExpression
(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 Details
-
equals
- Overrides:
equals
in classRolapMemberBase
-
compareTo
Description copied from class:RolapMemberBase
Compares 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.ordinal
field, 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:
compareTo
in interfaceComparable
- Overrides:
compareTo
in classRolapMemberBase
- Returns:
- -1 if this is less, 0 if this is the same, 1 if this is greater
-
hashCode
public int hashCode()- Overrides:
hashCode
in classRolapMemberBase
-
getCaption
Description copied from class:OlapElementBase
Returns the display name of this catalog element. If no caption is defined, the name is returned.- Specified by:
getCaption
in interfaceOlapElement
- Overrides:
getCaption
in classMemberBase
-
computeCalculated
Description copied from class:MemberBase
Computes the value to be returned byMemberBase.isCalculated()
, so it can be cached in a variable.- Overrides:
computeCalculated
in classMemberBase
- Parameters:
memberType
- Member type- Returns:
- Whether this member is calculated
-
getSolveOrder
public int getSolveOrder()- Specified by:
getSolveOrder
in interfaceMember
- Overrides:
getSolveOrder
in classMemberBase
-
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 interfaceMember
- Overrides:
getExpression
in classMemberBase
-
setExpression
-
setExpression
-
getOrdinal
public int getOrdinal()Description copied from class:MemberBase
Returns the ordinal of this member within its hierarchy. The default implementation returns -1.- Specified by:
getOrdinal
in interfaceMember
- Overrides:
getOrdinal
in classRolapMemberBase
-
getDataMember
Description copied from interface:Member
Returns 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:
getDataMember
in interfaceMember
- Overrides:
getDataMember
in classMemberBase
-
getQualifiedName
Description copied from interface:OlapElement
Returns the name of this element qualified by its class, for example "hierarchy 'Customers'".- Specified by:
getQualifiedName
in interfaceOlapElement
- Overrides:
getQualifiedName
in classMemberBase
-
getMember
-
getPropertyValue
Description copied from interface:Member
Returns the value of the property namedpropertyName
, matching according to the required case-sensitivity.- Specified by:
getPropertyValue
in interfaceMember
- Overrides:
getPropertyValue
in classRolapMemberBase
-