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 Details

    • levelReader

      protected mondrian.rolap.RolapCubeLevel.LevelReader levelReader
  • Constructor Details

  • Method Details

    • setStarKeyColumn

      public void setStarKeyColumn(RolapStar.Column column)
    • 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
    • getHierarchy

      public final RolapCubeHierarchy getHierarchy()
      Specified by:
      getHierarchy in interface Level
      Specified by:
      getHierarchy in interface OlapElement
      Overrides:
      getHierarchy in class RolapLevel
    • getChildLevel

      public final RolapCubeLevel getChildLevel()
      Specified by:
      getChildLevel in interface Level
      Overrides:
      getChildLevel in class LevelBase
    • getParentLevel

      public final RolapCubeLevel getParentLevel()
      Specified by:
      getParentLevel in interface Level
      Overrides:
      getParentLevel in class LevelBase
    • getCaption

      public String getCaption()
      Description copied from class: OlapElementBase
      Returns the display name of this catalog element. If no caption is defined, the name is returned.
      Specified by:
      getCaption in interface OlapElement
      Overrides:
      getCaption in class OlapElementBase
    • setCaption

      public void setCaption(String caption)
      Description copied from class: OlapElementBase
      Sets the display name of this catalog element.
      Overrides:
      setCaption in class OlapElementBase
    • getRolapLevel

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

      public boolean equals(RolapCubeLevel level)
    • getClosedPeer

      public RolapCubeLevel getClosedPeer()
      Overrides:
      getClosedPeer in class RolapLevel
    • 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
      Overrides:
      getMemberFormatter in class LevelBase