|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mondrian.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 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.Segment s, boolean unique)
Cube
unique
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 OlapElement
public Dimension getTimeDimension()
Cube
null
if there is no time dimension.
getTimeDimension
in interface Cube
public OlapElement lookupDimension(Id.Segment s)
public 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |