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
FieldsModifier and TypeFieldDescriptionstatic final intconstraints indexes for adSchemaMembers http://msdn.microsoft.com/library/psdk/dasdk/mdx8h4k.htm check "Restrictions in the MEMBER Rowset" under MEMBER Rowset sectionstatic final intstatic final intprotected Dimension[]static final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intprotected final Stringstatic final intstatic final intFields inherited from class mondrian.olap.OlapElementBase
caption, visible -
Constructor Summary
Constructors -
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, ifuniqueis true) equalss.Methods inherited from class mondrian.olap.OlapElementBase
clone, computeHashCode, equals, equals, getCaption, getLocalized, getLogger, hashCode, isVisible, setCaption, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface mondrian.olap.Annotated
getAnnotationMapMethods inherited from interface mondrian.olap.Cube
createCalculatedMember, getMembersForQuery, getNamedSets, getSchema, getSchemaReader, nonJoiningDimensions, nonJoiningDimensionsMethods 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:
getNamein interfaceCube- Specified by:
getNamein interfaceOlapElement
-
getUniqueName
- Specified by:
getUniqueNamein interfaceOlapElement
-
getQualifiedName
Description copied from interface:OlapElementReturns the name of this element qualified by its class, for example "hierarchy 'Customers'".- Specified by:
getQualifiedNamein interfaceOlapElement
-
getDimension
Description copied from interface:OlapElementReturns 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:
getDimensionin interfaceOlapElement
-
getHierarchy
- Specified by:
getHierarchyin interfaceOlapElement
-
getDescription
- Specified by:
getDescriptionin interfaceOlapElement
-
getDimensions
Description copied from interface:CubeReturns the dimensions of this cube.- Specified by:
getDimensionsin interfaceCube
-
lookupHierarchy
Description copied from interface:CubeFinds a hierarchy whose name (or unique name, ifuniqueis true) equalss.- Specified by:
lookupHierarchyin interfaceCube
-
lookupChild
Description copied from interface:OlapElementLooks up a child element, returning null if it does not exist.- Specified by:
lookupChildin 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:CubeHelper 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:
getYearLevelin interfaceCube- Returns:
- Level or null.
-
getQuarterLevel
Description copied from interface:CubeReturn Quarter Level or null.- Specified by:
getQuarterLevelin interfaceCube- Returns:
- Quarter Level or null.
-
getMonthLevel
Description copied from interface:CubeReturn Month Level or null.- Specified by:
getMonthLevelin interfaceCube- Returns:
- Month Level or null.
-
getWeekLevel
Description copied from interface:CubeReturn Week Level or null.- Specified by:
getWeekLevelin interfaceCube- Returns:
- Week Level or null.
-