|
|||||||||
| 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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface mondrian.olap.OlapElement |
|---|
OlapElement.LocalizedProperty |
| Field Summary | |
|---|---|
protected String |
description
|
protected DimensionType |
dimensionType
|
protected Hierarchy[] |
hierarchies
|
protected boolean |
highCardinality
|
protected String |
name
|
protected String |
uniqueName
|
| Fields inherited from class mondrian.olap.OlapElementBase |
|---|
caption, visible |
| Fields inherited from interface mondrian.olap.Dimension |
|---|
MEASURES_NAME, MEASURES_UNIQUE_NAME |
| Constructor Summary | |
|---|---|
protected |
DimensionBase(String name,
String caption,
boolean visible,
String description,
DimensionType dimensionType,
boolean highCardinality)
Creates a DimensionBase. |
| Method Summary | |
|---|---|
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()
|
String |
getName()
|
String |
getQualifiedName()
Returns the name of this element qualified by its class, for example "hierarchy 'Customers'". |
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, getLocalized, getLogger, hashCode, isVisible, 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, getLocalized, isVisible |
| Methods inherited from interface mondrian.olap.Annotated |
|---|
getAnnotationMap |
| Field Detail |
|---|
protected final String name
protected final String uniqueName
protected final String description
protected final boolean highCardinality
protected Hierarchy[] hierarchies
protected DimensionType dimensionType
| Constructor Detail |
|---|
protected DimensionBase(String name,
String caption,
boolean visible,
String description,
DimensionType dimensionType,
boolean highCardinality)
name - NamedimensionType - TypehighCardinality - Whether high-cardinality| Method Detail |
|---|
public String getUniqueName()
getUniqueName in interface OlapElementpublic String getName()
getName in interface OlapElementpublic String getDescription()
getDescription in interface OlapElementpublic Hierarchy[] getHierarchies()
Dimension
getHierarchies in interface Dimensionpublic Hierarchy getHierarchy()
getHierarchy in interface OlapElementpublic Dimension getDimension()
OlapElementExample 1:
has dimension[Sales].children
[Sales].
Example 2:
order(except([Promotion Media].[Media Type].members,
{[Promotion Media].[Media Type].[No Media]}),
[Measures].[Unit Sales], DESC)
has dimension [Promotion Media].
Example 3:
CrossJoin([Product].[Product Department].members,
[Gender].members)
has no dimension (well, actually it is [Product] x [Gender], but we
can't represent that, so we return null);
getDimension in interface OlapElementpublic DimensionType getDimensionType()
DimensionDimensionType.StandardDimension or
DimensionType.TimeDimension
getDimensionType in interface Dimensionpublic String getQualifiedName()
OlapElement
getQualifiedName in interface OlapElementpublic boolean isMeasures()
Dimension[Measures] dimension.
isMeasures in interface Dimension
public OlapElement lookupChild(SchemaReader schemaReader,
Id.Segment s,
MatchType matchType)
OlapElement
lookupChild in interface OlapElementpublic boolean isHighCardinality()
Dimension
isHighCardinality in interface Dimension
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||