Package mondrian.olap
Interface Hierarchy
-
- All Superinterfaces:
Annotated,OlapElement
- All Known Implementing Classes:
HierarchyBase,RolapCubeHierarchy,RolapHierarchy
public interface Hierarchy extends OlapElement, Annotated
AHierarchyis a set of members, organized into levels.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface mondrian.olap.OlapElement
OlapElement.LocalizedProperty
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description MembercreateMember(Member parent, Level level, String name, Formula formula)Creates a member of this hierarchy.MembergetAllMember()Returns the "All" member of this hierarchy.MembergetDefaultMember()Returns the default member of this hierarchy.DimensiongetDimension()Returns the dimension this hierarchy belongs to.Level[]getLevels()Returns the levels in this hierarchy.MembergetNullMember()Returns a special member representing the "null" value.StringgetUniqueNameSsas()Deprecated.Will be removed in mondrian-4.0, whenOlapElement.getUniqueName()will have this behavior.booleanhasAll()-
Methods inherited from interface mondrian.olap.Annotated
getAnnotationMap
-
Methods inherited from interface mondrian.olap.OlapElement
getCaption, getDescription, getHierarchy, getLocalized, getName, getQualifiedName, getUniqueName, isVisible, lookupChild
-
-
-
-
Method Detail
-
getDimension
Dimension getDimension()
Returns the dimension this hierarchy belongs to.- Specified by:
getDimensionin interfaceOlapElement
-
getLevels
Level[] getLevels()
Returns the levels in this hierarchy.If a hierarchy is subject to access-control, some of the levels may not be visible; use
SchemaReader.getHierarchyLevels(mondrian.olap.Hierarchy)instead.
-
getDefaultMember
Member getDefaultMember()
Returns the default member of this hierarchy.If a hierarchy is subject to access-control, the default member may not be visible, so use
SchemaReader.getHierarchyDefaultMember(mondrian.olap.Hierarchy).
-
getAllMember
Member getAllMember()
Returns the "All" member of this hierarchy.
-
getNullMember
Member getNullMember()
Returns a special member representing the "null" value. This never occurs on an axis, but may occur if functions such asLead,NextMemberandParentMemberwalk off the end of the hierarchy.
-
hasAll
boolean hasAll()
-
createMember
Member createMember(Member parent, Level level, String name, Formula formula)
Creates a member of this hierarchy. If this is the measures hierarchy, a calculated member is created, andformulamust not be null.
-
getUniqueNameSsas
String getUniqueNameSsas()
Deprecated.Will be removed in mondrian-4.0, whenOlapElement.getUniqueName()will have this behavior.Returns the unique name of this hierarchy, always including the dimension name, e.g. "[Time].[Time]", regardless of whetherMondrianProperties.SsasCompatibleNamingis enabled.- Returns:
- Unique name of hierarchy.
-
-