public abstract class HierarchyBase extends OlapElementBase implements Hierarchy
Hierarchy.OlapElement.LocalizedProperty| Modifier and Type | Field and Description |
|---|---|
protected String |
allLevelName |
protected String |
allMemberName |
protected String |
description |
protected Dimension |
dimension |
protected boolean |
hasAll |
protected Level[] |
levels |
protected String |
name |
protected String |
subName
name and subName are the name of the
hierarchy, respectively containing and not containing dimension
name. |
protected String |
uniqueName |
caption, visible| Modifier | Constructor and Description |
|---|---|
protected |
HierarchyBase(Dimension dimension,
String subName,
String caption,
boolean visible,
String description,
boolean hasAll) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(OlapElement mdxElement) |
String |
getAllLevelName()
Returns the name of the 'all' level in this hierarchy.
|
String |
getAllMemberName() |
String |
getDescription() |
Dimension |
getDimension()
Returns the dimension this hierarchy belongs to.
|
Hierarchy |
getHierarchy() |
Level[] |
getLevels()
Returns the levels in this hierarchy.
|
String |
getName() |
String |
getQualifiedName()
Returns the name of this element qualified by its class, for example
"hierarchy 'Customers'".
|
String |
getSubName()
Returns the name of the hierarchy sans dimension name.
|
String |
getUniqueName() |
String |
getUniqueNameSsas()
Returns the unique name of this hierarchy, always including the dimension
name, e.g.
|
boolean |
hasAll() |
abstract boolean |
isRagged() |
OlapElement |
lookupChild(SchemaReader schemaReader,
Id.Segment s,
MatchType matchType)
Looks up a child element, returning null if it does not exist.
|
clone, computeHashCode, equals, getCaption, getLocalized, getLogger, hashCode, isVisible, setCaption, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcreateMember, getAllMember, getDefaultMember, getNullMembergetCaption, getLocalized, isVisiblegetAnnotationMapprotected final Dimension dimension
protected final String subName
name and subName are the name of the
hierarchy, respectively containing and not containing dimension
name. For example:
| uniqueName | name | subName |
|---|---|---|
| [Time.Weekly] | Time.Weekly | Weekly |
| [Customers] | Customers | null |
If MondrianProperties.SsasCompatibleNaming is
true, name and subName have the same value.
protected final String name
protected final String uniqueName
protected String description
protected Level[] levels
protected final boolean hasAll
protected String allMemberName
protected String allLevelName
public String getSubName()
public String getUniqueName()
getUniqueName in interface OlapElementpublic String getUniqueNameSsas()
HierarchyMondrianProperties.SsasCompatibleNaming is enabled.getUniqueNameSsas in interface Hierarchypublic String getName()
getName in interface OlapElementpublic String getQualifiedName()
OlapElementgetQualifiedName in interface OlapElementpublic abstract boolean isRagged()
public String getDescription()
getDescription in interface OlapElementpublic Dimension getDimension()
HierarchygetDimension in interface HierarchygetDimension in interface OlapElementpublic Level[] getLevels()
HierarchyIf a hierarchy is subject to access-control, some of the levels may
not be visible; use SchemaReader.getHierarchyLevels(mondrian.olap.Hierarchy) instead.
public Hierarchy getHierarchy()
getHierarchy in interface OlapElementpublic boolean equals(OlapElement mdxElement)
equals in class OlapElementBasepublic OlapElement lookupChild(SchemaReader schemaReader, Id.Segment s, MatchType matchType)
OlapElementlookupChild in interface OlapElementpublic String getAllMemberName()
public String getAllLevelName()
Copyright © 2021 Hitachi Vantara. All rights reserved.