|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mondrian.olap.OlapElementBase mondrian.olap.DimensionBase
public abstract class DimensionBase
Abstract implementation for a Dimension
.
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 |
Fields inherited from interface mondrian.olap.Dimension |
---|
MEASURES_NAME, MEASURES_UNIQUE_NAME |
Constructor Summary | |
---|---|
protected |
DimensionBase(String name,
DimensionType dimensionType,
boolean highCardinality)
|
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)
Looks up a child element, returning null if it does not exist. |
OlapElement |
lookupChild(SchemaReader schemaReader,
Id.Segment s,
MatchType matchType)
|
boolean |
usesDimension(Dimension dimension)
|
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 |
---|
getOrdinal, getSchema |
Methods inherited from interface mondrian.olap.OlapElement |
---|
getCaption |
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, DimensionType dimensionType, boolean highCardinality)
Method Detail |
---|
public String getUniqueName()
getUniqueName
in interface OlapElement
public String getName()
getName
in interface OlapElement
public 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 String getQualifiedName()
OlapElement
getQualifiedName
in interface OlapElement
public boolean isMeasures()
Dimension
[Measures]
dimension.
isMeasures
in interface Dimension
public boolean usesDimension(Dimension dimension)
public OlapElement lookupChild(SchemaReader schemaReader, Id.Segment s)
OlapElement
lookupChild
in interface OlapElement
public OlapElement lookupChild(SchemaReader schemaReader, Id.Segment s, MatchType matchType)
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 |