Package mondrian.rolap
Class RolapCubeDimension
- java.lang.Object
-
- mondrian.olap.OlapElementBase
-
- mondrian.olap.DimensionBase
-
- mondrian.rolap.RolapCubeDimension
-
- All Implemented Interfaces:
Annotated,Dimension,OlapElement
public class RolapCubeDimension extends DimensionBase
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
Constructors Constructor Description RolapCubeDimension(RolapCube cube, mondrian.rolap.RolapDimension rolapDim, MondrianDef.CubeDimension cubeDim, String name, int cubeOrdinal, List<RolapHierarchy> hierarchyList, boolean highCardinality)Creates a RolapCubeDimension.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intcomputeHashCode()Computes this object's hash code.booleanequals(Object o)Map<String,Annotation>getAnnotationMap()Returns a list of annotations.StringgetCaption()Returns the display name of this catalog element.RolapCubegetCube()DimensionTypegetDimensionType()Returns the type of this dimension (DimensionType.StandardDimensionorDimensionType.TimeDimensionHierarchygetHierarchy()Returns the hierarchy of an expression.protected org.apache.logging.log4j.LoggergetLogger()intgetOrdinal()SchemagetSchema()Returns the schema this dimension belongs to.voidsetCaption(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 Detail
-
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 Detail
-
getCube
public RolapCube getCube()
-
getSchema
public Schema getSchema()
Description copied from interface:DimensionReturns the schema this dimension belongs to.
-
getOrdinal
public int getOrdinal()
-
equals
public boolean equals(Object o)
-
getCaption
public String getCaption()
Description copied from class:OlapElementBaseReturns the display name of this catalog element. If no caption is defined, the name is returned.- Specified by:
getCaptionin interfaceOlapElement- Overrides:
getCaptionin classOlapElementBase
-
setCaption
public void setCaption(String caption)
Description copied from class:OlapElementBaseSets the display name of this catalog element.- Overrides:
setCaptionin classOlapElementBase
-
getDimensionType
public DimensionType getDimensionType()
Description copied from interface:DimensionReturns the type of this dimension (DimensionType.StandardDimensionorDimensionType.TimeDimension- Specified by:
getDimensionTypein interfaceDimension- Overrides:
getDimensionTypein classDimensionBase
-
getLogger
protected org.apache.logging.log4j.Logger getLogger()
- Specified by:
getLoggerin classOlapElementBase
-
getHierarchy
public Hierarchy 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:
getHierarchyin interfaceOlapElement- Overrides:
getHierarchyin classDimensionBase
-
getAnnotationMap
public Map<String,Annotation> getAnnotationMap()
Description copied from interface:AnnotatedReturns 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:OlapElementBaseComputes this object's hash code. Called at most once.- Overrides:
computeHashCodein classOlapElementBase- Returns:
- hash code
-
-