Package mondrian.olap

Interface Hierarchy

All Superinterfaces:
Annotated, OlapElement
All Known Implementing Classes:
HierarchyBase, RolapCubeHierarchy, RolapHierarchy

public interface Hierarchy extends OlapElement, Annotated
A Hierarchy is a set of members, organized into levels.
  • Method Details

    • getDimension

      Dimension getDimension()
      Returns the dimension this hierarchy belongs to.
      Specified by:
      getDimension in interface OlapElement
    • 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 as Lead, NextMember and ParentMember 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, and formula must not be null.
    • getUniqueNameSsas

      String getUniqueNameSsas()
      Returns the unique name of this hierarchy, always including the dimension name, e.g. "[Time].[Time]", regardless of whether MondrianProperties.SsasCompatibleNaming is enabled.
      Returns:
      Unique name of hierarchy.
    • getDisplayFolder

      String getDisplayFolder()