|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmondrian.olap.OlapElementBase
mondrian.olap.DimensionBase
public abstract class DimensionBase
Abstract implementation for a Dimension
.
Field Summary | |
---|---|
protected java.lang.String |
description
|
protected DimensionType |
dimensionType
|
protected Hierarchy[] |
hierarchies
|
protected boolean |
highCardinality
|
protected java.lang.String |
name
|
protected java.lang.String |
uniqueName
|
Fields inherited from class mondrian.olap.OlapElementBase |
---|
caption |
Fields inherited from interface mondrian.olap.Dimension |
---|
MEASURES_NAME, MEASURES_UNIQUE_NAME |
Constructor Summary | |
---|---|
protected |
DimensionBase(java.lang.String name,
DimensionType dimensionType,
boolean highCardinality)
Creates a DimensionBase. |
Method Summary | |
---|---|
java.lang.String |
getDescription()
|
Dimension |
getDimension()
Returns the dimension of a this expression, or null if no dimension is defined. |
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. |
Hierarchy |
getHierarchy()
|
java.lang.String |
getName()
|
java.lang.String |
getQualifiedName()
Returns the name of this element qualified by its class, for example "hierarchy 'Customers'". |
java.lang.String |
getUniqueName()
|
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. |
OlapElement |
lookupChild(SchemaReader schemaReader,
Id.Segment s,
MatchType matchType)
Looks up a child element, returning null if it does not exist. |
Methods inherited from class mondrian.olap.OlapElementBase |
---|
clone, computeHashCode, equals, equals, getCaption, getLogger, hashCode, setCaption, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface mondrian.olap.Dimension |
---|
getSchema |
Methods inherited from interface mondrian.olap.OlapElement |
---|
getCaption |
Field Detail |
---|
protected final java.lang.String name
protected final java.lang.String uniqueName
protected final java.lang.String description
protected final boolean highCardinality
protected Hierarchy[] hierarchies
protected DimensionType dimensionType
Constructor Detail |
---|
protected DimensionBase(java.lang.String name, DimensionType dimensionType, boolean highCardinality)
name
- NamedimensionType
- TypehighCardinality
- Whether high-cardinalityMethod Detail |
---|
public java.lang.String getUniqueName()
getUniqueName
in interface OlapElement
public java.lang.String getName()
getName
in interface OlapElement
public java.lang.String getDescription()
getDescription
in interface OlapElement
public Hierarchy[] getHierarchies()
Dimension
getHierarchies
in interface Dimension
public Hierarchy getHierarchy()
getHierarchy
in interface OlapElement
public Dimension getDimension()
OlapElement
Example 1:
has dimension[Sales].children
[Sales]
.
Example 2:
has dimension [Promotion Media].order(except([Promotion Media].[Media Type].members, {[Promotion Media].[Media Type].[No Media]}), [Measures].[Unit Sales], DESC)
Example 3:
has no dimension (well, actually it is [Product] x [Gender], but we can't represent that, so we return null);CrossJoin([Product].[Product Department].members, [Gender].members)
getDimension
in interface OlapElement
public DimensionType getDimensionType()
Dimension
DimensionType.StandardDimension
or
DimensionType.TimeDimension
getDimensionType
in interface Dimension
public java.lang.String getQualifiedName()
OlapElement
getQualifiedName
in interface OlapElement
public boolean isMeasures()
Dimension
[Measures]
dimension.
isMeasures
in interface Dimension
public OlapElement lookupChild(SchemaReader schemaReader, Id.Segment s, MatchType matchType)
OlapElement
lookupChild
in interface OlapElement
public boolean isHighCardinality()
Dimension
isHighCardinality
in interface Dimension
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |