mondrian.olap
Interface Dimension

All Superinterfaces:
OlapElement
All Known Implementing Classes:
DimensionBase, RolapCubeDimension, RolapDimension

public interface Dimension
extends OlapElement

A Dimension represents a dimension of a cube.

 

Field Summary
static String MEASURES_NAME
           
static String MEASURES_UNIQUE_NAME
           
 
Method Summary
 DimensionType getDimensionType()
          Returns the type of this dimension (DimensionType.StandardDimension or DimensionType.TimeDimension
 Hierarchy[] getHierarchies()
          Returns an array of the hierarchies which belong to this dimension.
 int getOrdinal(Cube cube)
          Returns dimension's ordinal within a given cube.
 Schema getSchema()
          Returns the schema this dimension belongs to.
 boolean isHighCardinality()
          Returns whether the dimension should be considered as a "high cardinality" or "low cardinality" according to cube definition.
 boolean isMeasures()
          Returns whether this is the [Measures] dimension.
 
Methods inherited from interface mondrian.olap.OlapElement
getCaption, getDescription, getDimension, getHierarchy, getName, getQualifiedName, getUniqueName, lookupChild, lookupChild
 

Field Detail

MEASURES_UNIQUE_NAME

static final String MEASURES_UNIQUE_NAME
See Also:
Constant Field Values

MEASURES_NAME

static final String MEASURES_NAME
See Also:
Constant Field Values
Method Detail

getHierarchies

Hierarchy[] getHierarchies()
Returns an array of the hierarchies which belong to this dimension.


isMeasures

boolean isMeasures()
Returns whether this is the [Measures] dimension.


getDimensionType

DimensionType getDimensionType()
Returns the type of this dimension (DimensionType.StandardDimension or DimensionType.TimeDimension


getOrdinal

int getOrdinal(Cube cube)
Returns dimension's ordinal within a given cube. The [Measures] always has ordinal 0.


getSchema

Schema getSchema()
Returns the schema this dimension belongs to.


isHighCardinality

boolean isHighCardinality()
Returns whether the dimension should be considered as a "high cardinality" or "low cardinality" according to cube definition. Mondrian tends to evaluate high cardinality dimensions using iterators rather than lists, avoiding instantiating the dimension in memory.

Returns:
whether this dimension is high-cardinality

SourceForge.net_Logo