public abstract class CubeBase extends OlapElementBase implements Cube
CubeBase
is an abstract implementation of Cube
.OlapElement.LocalizedProperty
Modifier and Type | Field and Description |
---|---|
static int |
CATALOG_NAME
constraints indexes for adSchemaMembers
http://msdn.microsoft.com/library/psdk/dasdk/mdx8h4k.htm
check "Restrictions in the MEMBER Rowset" under MEMBER Rowset section
|
static int |
CUBE_NAME |
static int |
DIMENSION_UNIQUE_NAME |
protected Dimension[] |
dimensions |
static int |
HIERARCHY_UNIQUE_NAME |
static int |
LEVEL_NUMBER |
static int |
LEVEL_UNIQUE_NAME |
static int |
maxNofConstraintsForAdSchemaMember |
static int |
MDPROP_USERDEFINED0 |
static int |
MDTREEOP_CHILDREN |
static int |
MDTREEOP_SELF |
static int |
MEMBER_CAPTION |
static int |
MEMBER_NAME |
static int |
MEMBER_TYPE |
static int |
MEMBER_UNIQUE_NAME |
protected String |
name |
static int |
SCHEMA_NAME |
static int |
Tree_Operator |
caption, visible
Modifier | Constructor and Description |
---|---|
protected |
CubeBase(String name,
String caption,
boolean visible,
String description,
Dimension[] dimensions)
Creates a CubeBase.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription() |
Dimension |
getDimension()
Returns the dimension of a this expression, or null if no dimension is
defined.
|
Dimension[] |
getDimensions()
Returns the dimensions of this cube.
|
Hierarchy |
getHierarchy() |
Level |
getMonthLevel()
Return Month Level or null.
|
String |
getName() |
String |
getQualifiedName()
Returns the name of this element qualified by its class, for example
"hierarchy 'Customers'".
|
Level |
getQuarterLevel()
Return Quarter Level or null.
|
String |
getUniqueName() |
Level |
getWeekLevel()
Return Week Level or null.
|
Level |
getYearLevel()
Helper method that returns the Year Level or returns null if the Time
Dimension does not exist or if Year is not defined in the Time Dimension.
|
OlapElement |
lookupChild(SchemaReader schemaReader,
Id.Segment s,
MatchType matchType)
Looks up a child element, returning null if it does not exist.
|
Dimension |
lookupDimension(Id.Segment s)
Looks up a dimension in this cube based on a component of its name.
|
Hierarchy |
lookupHierarchy(Id.NameSegment s,
boolean unique)
Finds a hierarchy whose name (or unique name, if
unique is
true) equals s . |
clone, computeHashCode, equals, equals, getCaption, getLocalized, getLogger, hashCode, isVisible, setCaption, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
createCalculatedMember, getMembersForQuery, getNamedSets, getSchema, getSchemaReader, nonJoiningDimensions, nonJoiningDimensions
getCaption, getLocalized, isVisible
getAnnotationMap
public static final int CATALOG_NAME
public static final int SCHEMA_NAME
public static final int CUBE_NAME
public static final int DIMENSION_UNIQUE_NAME
public static final int HIERARCHY_UNIQUE_NAME
public static final int LEVEL_UNIQUE_NAME
public static final int LEVEL_NUMBER
public static final int MEMBER_NAME
public static final int MEMBER_UNIQUE_NAME
public static final int MEMBER_CAPTION
public static final int MEMBER_TYPE
public static final int Tree_Operator
public static final int maxNofConstraintsForAdSchemaMember
public static final int MDTREEOP_SELF
public static final int MDTREEOP_CHILDREN
public static final int MDPROP_USERDEFINED0
protected final String name
protected Dimension[] dimensions
public String getName()
getName
in interface Cube
getName
in interface OlapElement
public String getUniqueName()
getUniqueName
in interface OlapElement
public String getQualifiedName()
OlapElement
getQualifiedName
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 Hierarchy getHierarchy()
getHierarchy
in interface OlapElement
public String getDescription()
getDescription
in interface OlapElement
public Dimension[] getDimensions()
Cube
getDimensions
in interface Cube
public Hierarchy lookupHierarchy(Id.NameSegment s, boolean unique)
Cube
unique
is
true) equals s
.lookupHierarchy
in interface Cube
public OlapElement lookupChild(SchemaReader schemaReader, Id.Segment s, MatchType matchType)
OlapElement
lookupChild
in interface OlapElement
public Dimension lookupDimension(Id.Segment s)
s
- Name segmentpublic Level getYearLevel()
Cube
getYearLevel
in interface Cube
public Level getQuarterLevel()
Cube
getQuarterLevel
in interface Cube
public Level getMonthLevel()
Cube
getMonthLevel
in interface Cube
public Level getWeekLevel()
Cube
getWeekLevel
in interface Cube
Copyright © 2018 Hitachi Vantara. All rights reserved.