|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Member
A Member is a 'point' on a dimension of a cube. Examples are
[Time].[1997].[January],
[Customer].[All Customers],
[Customer].[USA].[CA],
[Measures].[Unit Sales].
Every member belongs to a Level of a Hierarchy. Members
except the root member have a parent, and members not at the leaf level
have one or more children.
Measures are a special kind of member. They belong to their own
dimension, [Measures].
There are also special members representing the 'All' value of a hierarchy, the null value, and the error value.
Members can have member properties. Their Level.getProperties()
defines which are allowed.
![]() |
![]() |
| Nested Class Summary | |
|---|---|
static class |
Member.MemberType
|
| Method Summary | |
|---|---|
Member[] |
getAncestorMembers()
Returns array of all members, which are ancestor to this. |
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 |
Exp |
getExpression()
|
Hierarchy |
getHierarchy()
|
Level |
getLevel()
|
Member.MemberType |
getMemberType()
Returns the type of member. |
Comparable |
getOrderKey()
Returns the order key of the member (relative to its siblings); null if undefined or unavailable. |
int |
getOrdinal()
Returns the ordinal of the member. |
Member |
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. |
int |
getSolveOrder()
|
boolean |
isAll()
Returns whether this is the 'all' member. |
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 member)
Returns whether member is equal to, a child, or a
descendent of this Member. |
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'. |
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. |
| Methods inherited from interface mondrian.olap.OlapElement |
|---|
getCaption, getDescription, getDimension, getName, getQualifiedName, getUniqueName, lookupChild, lookupChild |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
Member getParentMember()
Hierarchy.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).
Level getLevel()
Hierarchy getHierarchy()
getHierarchy in interface OlapElementString getParentUniqueName()
Member.MemberType getMemberType()
void setName(String name)
WITH clause of
a query.
boolean isAll()
boolean isMeasure()
boolean isNull()
boolean isChildOrEqualTo(Member member)
member is equal to, a child, or a
descendent of this Member.
boolean isCalculated()
with
member clause in an mdx query or a calculated member defined in
cube.
int getSolveOrder()
Exp getExpression()
Member[] getAncestorMembers()
this.
boolean isCalculatedInQuery()
with member
clause in an mdx query.
Object getPropertyValue(String propertyName)
propertyName.
Name match is case-sensitive.
Object getPropertyValue(String propertyName,
boolean matchCase)
propertyName,
matching according to the required case-sensitivity.
String getPropertyFormattedValue(String propertyName)
propertyName.
void setProperty(String name,
Object value)
Property[] getProperties()
int getOrdinal()
Comparable getOrderKey()
boolean isHidden()
int getDepth()
Member getDataMember()
Returns this member if this member is a leaf member, or if the nonleaf member does not have an associated data member.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||