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, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcreateCalculatedMember, getMembersForQuery, getNamedSets, getSchema, getSchemaReader, nonJoiningDimensions, nonJoiningDimensionsgetCaption, getLocalized, isVisiblegetAnnotationMappublic 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 CubegetName in interface OlapElementpublic String getUniqueName()
getUniqueName in interface OlapElementpublic String getQualifiedName()
OlapElementgetQualifiedName 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 Hierarchy getHierarchy()
getHierarchy in interface OlapElementpublic String getDescription()
getDescription in interface OlapElementpublic Dimension[] getDimensions()
CubegetDimensions in interface Cubepublic Hierarchy lookupHierarchy(Id.NameSegment s, boolean unique)
Cubeunique is
true) equals s.lookupHierarchy in interface Cubepublic OlapElement lookupChild(SchemaReader schemaReader, Id.Segment s, MatchType matchType)
OlapElementlookupChild in interface OlapElementpublic Dimension lookupDimension(Id.Segment s)
s - Name segmentpublic Level getYearLevel()
CubegetYearLevel in interface Cubepublic Level getQuarterLevel()
CubegetQuarterLevel in interface Cubepublic Level getMonthLevel()
CubegetMonthLevel in interface Cubepublic Level getWeekLevel()
CubegetWeekLevel in interface CubeCopyright © 2021 Hitachi Vantara. All rights reserved.