Package mondrian.olap

Class LevelBase

    • Field Detail

      • hierarchy

        protected final Hierarchy hierarchy
      • name

        protected final String name
      • uniqueName

        protected final String uniqueName
      • description

        protected final String description
      • depth

        protected final int depth
      • levelType

        protected final LevelType levelType
      • approxRowCount

        protected int approxRowCount
    • Method Detail

      • setApproxRowCount

        public void setApproxRowCount​(int approxRowCount)
        Sets the approximate number of members in this Level.
        See Also:
        Level.getApproxRowCount()
      • getQualifiedName

        public String getQualifiedName()
        Description copied from interface: OlapElement
        Returns the name of this element qualified by its class, for example "hierarchy 'Customers'".
        Specified by:
        getQualifiedName in interface OlapElement
      • getDimension

        public Dimension getDimension()
        Description copied from interface: OlapElement
        Returns the dimension of a this expression, or null if no dimension is defined. Applicable only to set expressions.

        Example 1:

         [Sales].children
         
        has dimension [Sales].

        Example 2:

         order(except([Promotion Media].[Media Type].members,
                      {[Promotion Media].[Media Type].[No Media]}),
               [Measures].[Unit Sales], DESC)
         
        has dimension [Promotion Media].

        Example 3:

         CrossJoin([Product].[Product Department].members,
                   [Gender].members)
         
        has no dimension (well, actually it is [Product] x [Gender], but we can't represent that, so we return null);

        Specified by:
        getDimension in interface OlapElement
      • isAll

        public abstract boolean isAll()
        Specified by:
        isAll in interface Level
      • isMeasure

        public boolean isMeasure()
      • getMemberFormatter

        public MemberFormatter getMemberFormatter()
        Description copied from interface: Level
        Returns the object that is used to format members of this level.
        Specified by:
        getMemberFormatter in interface Level