Package mondrian.olap
Interface Hierarchy
-
- All Superinterfaces:
Annotated
,OlapElement
- All Known Implementing Classes:
HierarchyBase
,RolapCubeHierarchy
,RolapHierarchy
public interface Hierarchy extends OlapElement, Annotated
AHierarchy
is 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 Member
createMember(Member parent, Level level, String name, Formula formula)
Creates a member of this hierarchy.Member
getAllMember()
Returns the "All" member of this hierarchy.Member
getDefaultMember()
Returns the default member of this hierarchy.Dimension
getDimension()
Returns the dimension this hierarchy belongs to.Level[]
getLevels()
Returns the levels in this hierarchy.Member
getNullMember()
Returns a special member representing the "null" value.String
getUniqueNameSsas()
Deprecated.Will be removed in mondrian-4.0, whenOlapElement.getUniqueName()
will have this behavior.boolean
hasAll()
-
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:
getDimension
in 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
,NextMember
andParentMember
walk 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, andformula
must 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.SsasCompatibleNaming
is enabled.- Returns:
- Unique name of hierarchy.
-
-