Package mondrian.olap
Class CubeBase
java.lang.Object
mondrian.olap.OlapElementBase
mondrian.olap.CubeBase
- All Implemented Interfaces:
Annotated
,Cube
,OlapElement
- Direct Known Subclasses:
RolapCube
CubeBase
is an abstract implementation of Cube
.- Since:
- 6 August, 2001
- Author:
- jhyde
-
Nested Class Summary
Nested classes/interfaces inherited from interface mondrian.olap.OlapElement
OlapElement.LocalizedProperty
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
constraints indexes for adSchemaMembers http://msdn.microsoft.com/library/psdk/dasdk/mdx8h4k.htm check "Restrictions in the MEMBER Rowset" under MEMBER Rowset sectionstatic final int
static final int
protected Dimension[]
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
protected final String
static final int
static final int
Fields inherited from class mondrian.olap.OlapElementBase
caption, visible
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the dimension of a this expression, or null if no dimension is defined.Returns the dimensions of this cube.Return Month Level or null.getName()
Returns the name of this element qualified by its class, for example "hierarchy 'Customers'".Return Quarter Level or null.Return Week Level or null.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.lookupChild
(SchemaReader schemaReader, Id.Segment s, MatchType matchType) Looks up a child element, returning null if it does not exist.Looks up a dimension in this cube based on a component of its name.lookupHierarchy
(Id.NameSegment s, boolean unique) Finds a hierarchy whose name (or unique name, ifunique
is true) equalss
.Methods inherited from class mondrian.olap.OlapElementBase
clone, computeHashCode, equals, equals, getCaption, getLocalized, getLogger, hashCode, isVisible, setCaption, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface mondrian.olap.Annotated
getAnnotationMap
Methods inherited from interface mondrian.olap.Cube
createCalculatedMember, getMembersForQuery, getNamedSets, getSchema, getSchemaReader, nonJoiningDimensions, nonJoiningDimensions
Methods inherited from interface mondrian.olap.OlapElement
getCaption, getLocalized, isVisible
-
Field Details
-
CATALOG_NAME
public static final int CATALOG_NAMEconstraints indexes for adSchemaMembers http://msdn.microsoft.com/library/psdk/dasdk/mdx8h4k.htm check "Restrictions in the MEMBER Rowset" under MEMBER Rowset section- See Also:
-
SCHEMA_NAME
public static final int SCHEMA_NAME- See Also:
-
CUBE_NAME
public static final int CUBE_NAME- See Also:
-
DIMENSION_UNIQUE_NAME
public static final int DIMENSION_UNIQUE_NAME- See Also:
-
HIERARCHY_UNIQUE_NAME
public static final int HIERARCHY_UNIQUE_NAME- See Also:
-
LEVEL_UNIQUE_NAME
public static final int LEVEL_UNIQUE_NAME- See Also:
-
LEVEL_NUMBER
public static final int LEVEL_NUMBER- See Also:
-
MEMBER_NAME
public static final int MEMBER_NAME- See Also:
-
MEMBER_UNIQUE_NAME
public static final int MEMBER_UNIQUE_NAME- See Also:
-
MEMBER_CAPTION
public static final int MEMBER_CAPTION- See Also:
-
MEMBER_TYPE
public static final int MEMBER_TYPE- See Also:
-
Tree_Operator
public static final int Tree_Operator- See Also:
-
maxNofConstraintsForAdSchemaMember
public static final int maxNofConstraintsForAdSchemaMember- See Also:
-
MDTREEOP_SELF
public static final int MDTREEOP_SELF- See Also:
-
MDTREEOP_CHILDREN
public static final int MDTREEOP_CHILDREN- See Also:
-
MDPROP_USERDEFINED0
public static final int MDPROP_USERDEFINED0- See Also:
-
name
-
dimensions
-
-
Constructor Details
-
Method Details
-
getName
- Specified by:
getName
in interfaceCube
- Specified by:
getName
in interfaceOlapElement
-
getUniqueName
- Specified by:
getUniqueName
in interfaceOlapElement
-
getQualifiedName
Description copied from interface:OlapElement
Returns the name of this element qualified by its class, for example "hierarchy 'Customers'".- Specified by:
getQualifiedName
in interfaceOlapElement
-
getDimension
Description copied from interface:OlapElement
Returns the dimension of a this expression, or null if no dimension is defined. Applicable only to set expressions.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)
- Specified by:
getDimension
in interfaceOlapElement
-
getHierarchy
- Specified by:
getHierarchy
in interfaceOlapElement
-
getDescription
- Specified by:
getDescription
in interfaceOlapElement
-
getDimensions
Description copied from interface:Cube
Returns the dimensions of this cube.- Specified by:
getDimensions
in interfaceCube
-
lookupHierarchy
Description copied from interface:Cube
Finds a hierarchy whose name (or unique name, ifunique
is true) equalss
.- Specified by:
lookupHierarchy
in interfaceCube
-
lookupChild
Description copied from interface:OlapElement
Looks up a child element, returning null if it does not exist.- Specified by:
lookupChild
in interfaceOlapElement
-
lookupDimension
Looks up a dimension in this cube based on a component of its name.- Parameters:
s
- Name segment- Returns:
- Dimension, or null if not found
-
getYearLevel
Description copied from interface:Cube
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.- Specified by:
getYearLevel
in interfaceCube
- Returns:
- Level or null.
-
getQuarterLevel
Description copied from interface:Cube
Return Quarter Level or null.- Specified by:
getQuarterLevel
in interfaceCube
- Returns:
- Quarter Level or null.
-
getMonthLevel
Description copied from interface:Cube
Return Month Level or null.- Specified by:
getMonthLevel
in interfaceCube
- Returns:
- Month Level or null.
-
getWeekLevel
Description copied from interface:Cube
Return Week Level or null.- Specified by:
getWeekLevel
in interfaceCube
- Returns:
- Week Level or null.
-