Class RolapCubeLevel

  • All Implemented Interfaces:
    Annotated, Level, OlapElement

    public class RolapCubeLevel
    extends RolapLevel
    RolapCubeLevel wraps a RolapLevel for a specific Cube.
    Author:
    Will Gorman, 19 October 2007
    • Field Detail

      • levelReader

        protected mondrian.rolap.RolapCubeLevel.LevelReader levelReader
    • Method Detail

      • getStarKeyColumn

        public RolapStar.Column getStarKeyColumn()
        This is the RolapStar.Column that is related to this RolapCubeLevel
        Returns:
        the RolapStar.Column related to this RolapCubeLevel
      • getBaseStarKeyColumn

        public RolapStar.Column getBaseStarKeyColumn​(RolapCube baseCube)
        this method returns the RolapStar.Column if non-virtual, if virtual, find the base cube level and return it's column
        Parameters:
        baseCube - the base cube for the specificed virtual level
        Returns:
        the RolapStar.Column related to this RolapCubeLevel
      • getCube

        public final RolapCube getCube()
        Returns the (non virtual) cube this level belongs to.
        Returns:
        cube
      • getDimension

        public final RolapCubeDimension 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
        Overrides:
        getDimension in class LevelBase
      • getRolapLevel

        public RolapLevel getRolapLevel()
        Returns the underlying level.
        Returns:
        Underlying level