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.
- Author:
- Will Gorman (wgorman@pentaho.org)
-
-
Methods inherited from class mondrian.olap.DimensionBase |
getDescription, getDimension, getHierarchies, getName, getQualifiedName, getUniqueName, isHighCardinality, isMeasures, lookupChild, lookupChild, usesDimension |
parent
RolapCube parent
rolapDimension
RolapDimension rolapDimension
cubeOrdinal
int cubeOrdinal
xmlDimension
MondrianDef.CubeDimension xmlDimension
RolapCubeDimension
public RolapCubeDimension(RolapCube parent,
RolapDimension rolapDim,
MondrianDef.CubeDimension cubeDim,
String name,
int cubeOrdinal,
boolean highCardinality)
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()
getOrdinal
public int getOrdinal(Cube cube)
- Description copied from interface:
Dimension
- Returns dimension's ordinal within a given cube.
The
[Measures]
always has ordinal 0.
- Specified by:
getOrdinal
in interface Dimension
- Overrides:
getOrdinal
in class RolapDimension
equals
public boolean equals(Object o)
- Overrides:
equals
in class OlapElementBase
newHierarchy
RolapCubeHierarchy newHierarchy(String subName,
boolean hasAll)
- Overrides:
newHierarchy
in class RolapDimension
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