Package mondrian.rolap
Class RolapCubeDimension
java.lang.Object
mondrian.olap.OlapElementBase
mondrian.olap.DimensionBase
mondrian.rolap.RolapCubeDimension
- All Implemented Interfaces:
Annotated
,Dimension
,OlapElement
RolapCubeDimension wraps a RolapDimension for a specific Cube.
- Author:
- Will Gorman, 19 October 2007
-
Nested Class Summary
Nested classes/interfaces inherited from interface mondrian.olap.OlapElement
OlapElement.LocalizedProperty
-
Field Summary
Fields inherited from class mondrian.olap.DimensionBase
description, dimensionType, hierarchies, highCardinality, name, uniqueName
Fields inherited from class mondrian.olap.OlapElementBase
caption, visible
Fields inherited from interface mondrian.olap.Dimension
MEASURES_NAME, MEASURES_UNIQUE_NAME
-
Constructor Summary
ConstructorDescriptionRolapCubeDimension
(RolapCube cube, mondrian.rolap.RolapDimension rolapDim, MondrianDef.CubeDimension cubeDim, String name, int cubeOrdinal, List<RolapHierarchy> hierarchyList, boolean highCardinality) Creates a RolapCubeDimension. -
Method Summary
Modifier and TypeMethodDescriptionprotected int
Computes this object's hash code.boolean
Returns a list of annotations.Returns the display name of this catalog element.getCube()
Returns the type of this dimension (DimensionType.StandardDimension
orDimensionType.TimeDimension
Returns the hierarchy of an expression.protected org.apache.logging.log4j.Logger
int
Returns the schema this dimension belongs to.void
setCaption
(String caption) Sets the display name of this catalog element.Methods inherited from class mondrian.olap.DimensionBase
getDescription, getDimension, getHierarchies, getName, getQualifiedName, getUniqueName, isHighCardinality, isMeasures, lookupChild
Methods inherited from class mondrian.olap.OlapElementBase
clone, equals, getLocalized, hashCode, isVisible, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface mondrian.olap.OlapElement
getLocalized, isVisible
-
Constructor Details
-
RolapCubeDimension
public RolapCubeDimension(RolapCube cube, mondrian.rolap.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
-
-
Method Details
-
getCube
-
getSchema
Description copied from interface:Dimension
Returns the schema this dimension belongs to. -
getOrdinal
public int getOrdinal() -
equals
-
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 interfaceOlapElement
- Overrides:
getCaption
in classOlapElementBase
-
setCaption
Description copied from class:OlapElementBase
Sets the display name of this catalog element.- Overrides:
setCaption
in classOlapElementBase
-
getDimensionType
Description copied from interface:Dimension
Returns the type of this dimension (DimensionType.StandardDimension
orDimensionType.TimeDimension
- Specified by:
getDimensionType
in interfaceDimension
- Overrides:
getDimensionType
in classDimensionBase
-
getLogger
protected org.apache.logging.log4j.Logger getLogger()- Specified by:
getLogger
in classOlapElementBase
-
getHierarchy
Returns the hierarchy of an expression.In this case, the expression is a dimension, so the hierarchy is the dimension's default hierarchy (its first).
- Specified by:
getHierarchy
in interfaceOlapElement
- Overrides:
getHierarchy
in classDimensionBase
-
getAnnotationMap
Description copied from interface:Annotated
Returns a list of annotations.The map may be empty, never null.
- Returns:
- Map from annotation name to annotations.
-
computeHashCode
protected int computeHashCode()Description copied from class:OlapElementBase
Computes this object's hash code. Called at most once.- Overrides:
computeHashCode
in classOlapElementBase
- Returns:
- hash code
-