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, visibleMEASURES_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, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitgetCaption, getLocalized, isVisiblegetAnnotationMapprotected 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 OlapElementpublic String getName()
getName in interface OlapElementpublic String getDescription()
getDescription in interface OlapElementpublic Hierarchy[] getHierarchies()
DimensiongetHierarchies 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.TimeDimensiongetDimensionType in interface Dimensionpublic String getQualifiedName()
OlapElementgetQualifiedName in interface OlapElementpublic boolean isMeasures()
Dimension[Measures] dimension.isMeasures in interface Dimensionpublic OlapElement lookupChild(SchemaReader schemaReader, Id.Segment s, MatchType matchType)
OlapElementlookupChild in interface OlapElementpublic boolean isHighCardinality()
DimensionisHighCardinality in interface DimensionCopyright © 2019 Hitachi Vantara. All rights reserved.