The fully-qualified name starts with the name of the dimension, followed by the name of a root member, and continues with the name of each successive member on the path from the root member. If a member's name is unique within its level, preceding member name can be omitted.
For example, {@code "[Product].[Food]"} and{@code "[Product].[All Products].[Food]"}are both valid ways to locate the "Food" member of the "Product" dimension.
The name is represented as a list of {@link IdentifierSegment}objects. There are some common ways to create such a list. If you have an identifier, call {@link org.olap4j.mdx.IdentifierNode#parseIdentifier(String)}to parse the string into an identifier, then {@link org.olap4j.mdx.IdentifierNode#getSegmentList()}. For example,
Member member = cube.lookupMember(
IdentifierNode.parseIdentifier( "[Product].[Food]").getSegmentList())
If you have an array of names, call {@link org.olap4j.mdx.IdentifierNode#ofNames(String)}. For example,
Member member = cube.lookupMember(
IdentifierNode.parseIdentifier( "[Product].[Food]").getSegmentList())
@param nameParts Components of the fully-qualified member name
@return member with the given name, or null if not found
@throws OlapException if error occurs
|
|