public abstract class DimensionBase extends OlapElementBase implements Dimension
Dimension
.OlapElement.LocalizedProperty
Modifier and Type | Field and Description |
---|---|
protected String |
description |
protected DimensionType |
dimensionType |
protected Hierarchy[] |
hierarchies |
protected boolean |
highCardinality |
protected String |
name |
protected String |
uniqueName |
caption, visible
MEASURES_NAME, MEASURES_UNIQUE_NAME
Modifier | Constructor and Description |
---|---|
protected |
DimensionBase(String name,
String caption,
boolean visible,
String description,
DimensionType dimensionType,
boolean highCardinality)
Creates a DimensionBase.
|
Modifier and Type | Method and Description |
---|---|
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.
|
clone, computeHashCode, equals, equals, getCaption, getLocalized, getLogger, hashCode, isVisible, setCaption, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
getCaption, getLocalized, isVisible
getAnnotationMap
protected final String name
protected final String uniqueName
protected final String description
protected final boolean highCardinality
protected Hierarchy[] hierarchies
protected DimensionType dimensionType
protected DimensionBase(String name, String caption, boolean visible, String description, DimensionType dimensionType, boolean highCardinality)
name
- NamedimensionType
- TypehighCardinality
- Whether high-cardinalitypublic 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 OlapElement lookupChild(SchemaReader schemaReader, Id.Segment s, MatchType matchType)
OlapElement
lookupChild
in interface OlapElement
public boolean isHighCardinality()
Dimension
isHighCardinality
in interface Dimension
Copyright © 2019 Hitachi Vantara. All rights reserved.