public class DelegatingRolapMember extends RolapMemberBase
RolapMember that delegates all calls
to an underlying member.RolapMemberBase.DefaultPropertyValueMapFactory, RolapMemberBase.PropertyValueMapFactory, RolapMemberBase.PropertyValueMapFactoryFactoryMember.MemberTypeOlapElement.LocalizedProperty| Modifier and Type | Field and Description |
|---|---|
RolapMember |
member |
flags, level, parentMember, uniqueNamecaption, visible| Modifier | Constructor and Description |
|---|---|
protected |
DelegatingRolapMember(RolapMember member) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o)
Compares this member to another
RolapMemberBase. |
List<Member> |
getAncestorMembers()
Returns a list of the ancestor members of this member.
|
Map<String,Annotation> |
getAnnotationMap()
Returns a list of annotations.
|
String |
getCaption()
Returns the display name of this catalog element.
|
Member |
getDataMember()
Returns the system-generated data member that is associated with a nonleaf member of a dimension.
|
int |
getDepth()
returns the depth of this member, which is not the level's depth in case of parent child dimensions
|
String |
getDescription() |
Dimension |
getDimension()
Returns the dimension of a this expression, or null if no dimension is
defined.
|
Exp |
getExpression()
Returns the expression by which this member is calculated.
|
RolapHierarchy |
getHierarchy() |
Object |
getKey() |
RolapLevel |
getLevel() |
Member.MemberType |
getMemberType()
Returns the type of member.
|
String |
getName() |
Comparable |
getOrderKey()
Returns the order key of this member among its siblings.
|
int |
getOrdinal()
Returns the ordinal of this member within its hierarchy.
|
RolapMember |
getParentMember()
Returns this member's parent, or null (not the 'null member', as returned by
Hierarchy.getNullMember())
if it
has no parent. |
String |
getParentUniqueName()
Returns name of parent member, or empty string (not null) if we are the root.
|
Property[] |
getProperties()
Returns the definitions of the properties this member may have.
|
String |
getPropertyFormattedValue(String propertyName)
Returns the formatted value of the property named
propertyName. |
Object |
getPropertyValue(String propertyName)
Returns the value of the property named
propertyName. |
Object |
getPropertyValue(String propertyName,
boolean matchCase)
Returns the value of the property named
propertyName, matching according to the required
case-sensitivity. |
String |
getQualifiedName()
Returns the name of this element qualified by its class, for example
"hierarchy 'Customers'".
|
int |
getSolveOrder()
Returns the solve order of this calculation.
|
String |
getUniqueName() |
boolean |
isAll()
Returns whether this is the 'all' member.
|
boolean |
isAllMember() |
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. |
boolean |
isCalculatedInQuery()
Returns whether this member is computed from a
WITH MEMBER clause in an MDX query. |
boolean |
isChildOrEqualTo(Member member2)
Returns whether
member is equal to, a child, or a descendent of this Member. |
boolean |
isEvaluated()
Returns whether this member should be evaluated within the Evaluator.
|
boolean |
isHidden()
Returns whether this member is 'hidden', as per the rules which define a ragged hierarchy.
|
boolean |
isMeasure()
Returns whether this is a member of the measures dimension.
|
boolean |
isNull()
Returns whether this is the 'null member'.
|
boolean |
isParentChildLeaf() |
boolean |
isParentChildPhysicalMember() |
OlapElement |
lookupChild(SchemaReader schemaReader,
Id.Segment s,
MatchType matchType)
Looks up a child element, returning null if it does not exist.
|
void |
setName(String name)
Only allowable if the member is part of the
WITH clause of a query. |
void |
setProperty(String name,
Object value)
Sets a property of this member to a given value.
|
childLevelHasApproxRowCount, containsAggregateFunction, equals, equals, getAllMembers, getCaptionValue, getCompiledExpression, getHierarchyCardinality, getHierarchyOrdinal, getLogger, getPropertyFromMap, hashCode, keyToString, setCaptionValue, setContextIn, setOrdinal, setOrdinals, setUniqueNamecomputeCalculated, isChildOrEqualTo, isOnSameHierarchyChain, isOnSameHierarchyChainInternalclone, computeHashCode, getLocalized, isVisible, setCaption, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitisOnSameHierarchyChaingetLocalized, isVisiblepublic final RolapMember member
protected DelegatingRolapMember(RolapMember member)
public RolapLevel getLevel()
getLevel in interface MembergetLevel in interface RolapMembergetLevel in class RolapMemberBasepublic Object getKey()
getKey in interface RolapMembergetKey in class RolapMemberBasepublic RolapMember getParentMember()
MemberHierarchy.getNullMember())
if it
has no parent.
In an access-control context, a member may have no visible
parents, so use SchemaReader.getMemberParent(mondrian.olap.Member).
getParentMember in interface MembergetParentMember in interface RolapMembergetParentMember in class RolapMemberBasepublic RolapHierarchy getHierarchy()
getHierarchy in interface MembergetHierarchy in interface OlapElementgetHierarchy in interface RolapMembergetHierarchy in class RolapMemberBasepublic String getParentUniqueName()
MembergetParentUniqueName in interface MembergetParentUniqueName in class MemberBasepublic Member.MemberType getMemberType()
MembergetMemberType in interface MembergetMemberType in class MemberBasepublic boolean isParentChildLeaf()
isParentChildLeaf in interface MemberisParentChildLeaf in class RolapMemberBasepublic boolean isParentChildPhysicalMember()
isParentChildPhysicalMember in interface MemberisParentChildPhysicalMember in class MemberBasepublic void setName(String name)
MemberWITH clause of a query.setName in interface MembersetName in class RolapMemberBasepublic boolean isAll()
MemberisAll in interface MemberisAll in class MemberBasepublic boolean isMeasure()
MemberisMeasure in interface MemberisMeasure in class MemberBasepublic boolean isNull()
MemberisNull in interface MemberisNull in class MemberBasepublic boolean isChildOrEqualTo(Member member2)
Membermember is equal to, a child, or a descendent of this Member.isChildOrEqualTo in interface MemberisChildOrEqualTo in class MemberBasepublic boolean isCalculated()
Memberwith member clause in an mdx query or a
calculated member defined in cube.isCalculated in interface MemberisCalculated in class MemberBasepublic boolean isEvaluated()
MemberNormally Member.isCalculated() and Member.isEvaluated() should return
the same value, but in situations where mondrian would like to treat the two concepts separately such in role based
security, these values may differ.
isEvaluated in interface MemberisEvaluated in class MemberBasepublic int getSolveOrder()
getSolveOrder in interface MembergetSolveOrder in class MemberBasepublic Exp getExpression()
MemberBasegetExpression in interface MembergetExpression in class MemberBasepublic List<Member> getAncestorMembers()
MembergetAncestorMembers in interface MembergetAncestorMembers in class MemberBasepublic boolean isCalculatedInQuery()
MemberWITH MEMBER clause in an MDX query.isCalculatedInQuery in interface MemberisCalculatedInQuery in class RolapMemberBasepublic Object getPropertyValue(String propertyName)
MemberpropertyName. Name match is case-sensitive.getPropertyValue in interface MembergetPropertyValue in class RolapMemberBasepublic Object getPropertyValue(String propertyName, boolean matchCase)
MemberpropertyName, matching according to the required
case-sensitivity.getPropertyValue in interface MembergetPropertyValue in class RolapMemberBasepublic String getPropertyFormattedValue(String propertyName)
MemberpropertyName.getPropertyFormattedValue in interface MembergetPropertyFormattedValue in class RolapMemberBasepublic void setProperty(String name, Object value)
RolapMemberBaseWARNING: Setting system properties such as "$name" may have nasty side-effects.
setProperty in interface MembersetProperty in class RolapMemberBasepublic Property[] getProperties()
MembergetProperties in interface MembergetProperties in class RolapMemberBasepublic int getOrdinal()
MemberBasegetOrdinal in interface MembergetOrdinal in class RolapMemberBasepublic Comparable getOrderKey()
MemberBasegetOrderKey in interface MembergetOrderKey in class RolapMemberBasepublic boolean isHidden()
MemberisHidden in interface MemberisHidden in class RolapMemberBasepublic int getDepth()
MembergetDepth in interface MembergetDepth in class RolapMemberBasepublic Member getDataMember()
MemberReturns this member if this member is a leaf member, or if the nonleaf member does not have an associated data member.
getDataMember in interface MembergetDataMember in class MemberBasepublic int compareTo(Object o)
RolapMemberBaseRolapMemberBase.
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, use
FunUtil.compareHierarchically(mondrian.olap.Member, mondrian.olap.Member, boolean).
compareTo in interface ComparablecompareTo in class RolapMemberBasepublic String getUniqueName()
getUniqueName in interface OlapElementgetUniqueName in class MemberBasepublic String getName()
getName in interface OlapElementgetName in class RolapMemberBasepublic String getDescription()
getDescription in interface OlapElementgetDescription in class MemberBasepublic OlapElement lookupChild(SchemaReader schemaReader, Id.Segment s, MatchType matchType)
OlapElementlookupChild in interface OlapElementlookupChild in class MemberBasepublic Map<String,Annotation> getAnnotationMap()
AnnotatedThe map may be empty, never null.
getAnnotationMap in interface AnnotatedgetAnnotationMap in class RolapMemberBasepublic String getQualifiedName()
OlapElementgetQualifiedName in interface OlapElementgetQualifiedName in class MemberBasepublic String getCaption()
OlapElementBasegetCaption in interface OlapElementgetCaption in class MemberBasepublic Dimension getDimension()
OlapElementExample 1:
has dimension[Sales].children
[Sales].
Example 2:
order(except([Promotion Media].[Media Type].members,
{[Promotion Media].[Media Type].[No Media]}),
[Measures].[Unit Sales], DESC)
has dimension [Promotion Media].
Example 3:
CrossJoin([Product].[Product Department].members,
[Gender].members)
has no dimension (well, actually it is [Product] x [Gender], but we
can't represent that, so we return null);getDimension in interface OlapElementgetDimension in class MemberBasepublic boolean isAllMember()
isAllMember in interface RolapMemberisAllMember in class RolapMemberBaseCopyright © 2021 Hitachi Vantara. All rights reserved.