mondrian.rolap
Class RolapCubeDimension
java.lang.Object
mondrian.olap.OlapElementBase
mondrian.olap.DimensionBase
mondrian.rolap.RolapDimension
mondrian.rolap.RolapCubeDimension
- All Implemented Interfaces:
- Dimension, OlapElement
public class RolapCubeDimension
- extends RolapDimension
RolapCubeDimension wraps a RolapDimension for a specific Cube.
- Version:
- $Id: //open/mondrian/src/main/mondrian/rolap/RolapCubeDimension.java#10 $
- Author:
- Will Gorman (wgorman@pentaho.org)
cube
RolapCube cube
rolapDimension
RolapDimension rolapDimension
cubeOrdinal
int cubeOrdinal
xmlDimension
MondrianDef.CubeDimension xmlDimension
RolapCubeDimension
public RolapCubeDimension(RolapCube cube,
RolapDimension rolapDim,
MondrianDef.CubeDimension cubeDim,
String name,
int cubeOrdinal,
List<RolapHierarchy> hierarchyList,
boolean highCardinality)
- Creates a RolapCubeDimension.
- Parameters:
cube
- CuberolapDim
- Dimension wrapped by this dimensioncubeDim
- XML element definitionname
- Name of dimensioncubeOrdinal
- Ordinal of dimension within cubehierarchyList
- List of hierarchies in cubehighCardinality
- Whether high cardinality dimension
getCube
public RolapCube getCube()
getSchema
public Schema getSchema()
- Description copied from interface:
Dimension
- Returns the schema this dimension belongs to.
- Specified by:
getSchema
in interface Dimension
- Overrides:
getSchema
in class RolapDimension
getOrdinal
public int getOrdinal()
equals
public boolean equals(Object o)
- Overrides:
equals
in class OlapElementBase
newHierarchy
RolapCubeHierarchy newHierarchy(String subName,
boolean hasAll,
RolapHierarchy closureFor)
- Description copied from class:
RolapDimension
- Creates a hierarchy.
- Overrides:
newHierarchy
in class RolapDimension
- Parameters:
subName
- Name of this hierarchy.hasAll
- Whether hierarchy has an 'all' memberclosureFor
- Hierarchy for which the new hierarchy is a closure;
null for regular hierarchies
- Returns:
- Hierarchy
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
getDimensionType
public DimensionType getDimensionType()
- Description copied from interface:
Dimension
- Returns the type of this dimension
(
DimensionType.StandardDimension
or
DimensionType.TimeDimension
- Specified by:
getDimensionType
in interface Dimension
- Overrides:
getDimensionType
in class DimensionBase