Package mondrian.olap
Interface NameResolver.Namespace
- All Known Implementing Classes:
RolapSchemaReader
- Enclosing class:
- NameResolver
public static interface NameResolver.Namespace
Naming context within which elements are defined.
Elements' names are hierarchical, so elements are resolved one name segment at a time. It is possible for an element to be defined in a different namespace than its parent: for example, stored member [Dim].[Hier].[X].[Y] might have a child [Dim].[Hier].[X].[Y].[Z] which is a calculated member defined using a WITH MEMBER clause.
-
Method Summary
Modifier and TypeMethodDescriptionlookupChild
(OlapElement parent, org.olap4j.mdx.IdentifierSegment segment) Looks up a child element.lookupChild
(OlapElement parent, org.olap4j.mdx.IdentifierSegment segment, MatchType matchType) Looks up a child element, using a match type for inexact matching.
-
Method Details
-
lookupChild
OlapElement lookupChild(OlapElement parent, org.olap4j.mdx.IdentifierSegment segment, MatchType matchType) Looks up a child element, using a match type for inexact matching.If
matchType
isMatchType.EXACT
, effect is identical to callinglookupChild(OlapElement, org.olap4j.mdx.IdentifierSegment)
.Match type is ignored except when searching for members.
- Parameters:
parent
- Parent elementsegment
- Name segmentmatchType
- Match type- Returns:
- Olap element, or null
-
lookupChild
Looks up a child element.- Parameters:
parent
- Parent elementsegment
- Name segment- Returns:
- Olap element, or null
-