|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.olap.OlapElementBase
mondrian.olap.CubeBase
public abstract class CubeBase
CubeBase is an abstract implementation of Cube.
| Field Summary | |
|---|---|
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
|
| Fields inherited from class mondrian.olap.OlapElementBase |
|---|
caption |
| Constructor Summary | |
|---|---|
protected |
CubeBase(String name,
Dimension[] dimensions)
|
| Method Summary | |
|---|---|
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. |
Dimension |
getTimeDimension()
Returns the time dimension for this cube, or null
if there is no time dimension. |
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)
Looks up a child element, returning null if it does not exist. |
OlapElement |
lookupChild(SchemaReader schemaReader,
Id.Segment s,
MatchType matchType)
|
OlapElement |
lookupDimension(Id.Segment s)
|
Hierarchy |
lookupHierarchy(Id.Segment s,
boolean unique)
Finds a hierarchy whose name (or unique name, if unique is
true) equals s. |
| 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.Cube |
|---|
createCalculatedMember, getMembersForQuery, getNamedSets, getSchema, getSchemaReader, nonJoiningDimensions, nonJoiningDimensions |
| Methods inherited from interface mondrian.olap.OlapElement |
|---|
getCaption |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
protected CubeBase(String name,
Dimension[] dimensions)
| Method Detail |
|---|
public String getName()
getName in interface CubegetName in interface OlapElementpublic String getUniqueName()
getUniqueName in interface OlapElementpublic String getQualifiedName()
OlapElement
getQualifiedName 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()
Cube
getDimensions in interface Cube
public Hierarchy lookupHierarchy(Id.Segment s,
boolean unique)
Cubeunique is
true) equals s.
lookupHierarchy in interface Cube
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 OlapElementpublic Dimension getTimeDimension()
Cubenull
if there is no time dimension.
getTimeDimension in interface Cubepublic OlapElement lookupDimension(Id.Segment s)
public Level getYearLevel()
Cube
getYearLevel in interface Cubepublic Level getQuarterLevel()
Cube
getQuarterLevel in interface Cubepublic Level getMonthLevel()
Cube
getMonthLevel in interface Cubepublic Level getWeekLevel()
Cube
getWeekLevel in interface Cube
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||