Package mondrian.rolap
Class RolapLevel
java.lang.Object
mondrian.olap.OlapElementBase
mondrian.olap.LevelBase
mondrian.rolap.RolapLevel
- All Implemented Interfaces:
Annotated,Level,OlapElement
- Direct Known Subclasses:
RolapCubeLevel
RolapLevel implements Level for a ROLAP database.- Since:
- 10 August, 2001
- Author:
- jhyde
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumConditions under which a level's members may be hidden (thereby creating a ragged hierarchy).Nested classes/interfaces inherited from interface mondrian.olap.OlapElement
OlapElement.LocalizedProperty -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected MondrianDef.ExpressionThe column or expression which yields the level members' caption.protected MondrianDef.ExpressionThe column or expression which yields the level's key.protected MondrianDef.ExpressionThs expression which gives the name of members of this level.protected MondrianDef.ExpressionThe column or expression which yields the level's ordinal.protected MondrianDef.ExpressionThe expression which joins to the parent member in a parent-child hierarchy, or null if this is a regular hierarchy.protected mondrian.rolap.RolapProperty[]protected final MondrianDef.ClosureFields inherited from class mondrian.olap.LevelBase
approxRowCount, depth, description, hierarchy, levelType, memberFormatter, name, uniqueNameFields inherited from class mondrian.olap.OlapElementBase
caption, visible -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns a list of annotations.intReturns the approximate number of members in this level, orInteger.MIN_VALUEif no approximation is known.final Dialect.DatatypeProperty[]Returns properties defined against this level and parent levels.protected org.apache.logging.log4j.Loggermondrian.rolap.RolapProperty[]Returns properties defined against this level.booleanbooleanfinal booleanisAll()booleanReturns whether this level is parent-child.booleanisSimple()Indicates that level is not ragged and not a parent/child level.final booleanisUnique()lookupChild(SchemaReader schemaReader, Id.Segment name) lookupChild(SchemaReader schemaReader, Id.Segment name, MatchType matchType) Looks up a child element, returning null if it does not exist.static RolapLevellookupLevel(RolapLevel[] levels, String levelName) Methods inherited from class mondrian.olap.LevelBase
getChildLevel, getDepth, getDescription, getDimension, getLevelType, getMemberFormatter, getName, getParentLevel, getQualifiedName, getUniqueName, isMeasure, setApproxRowCountMethods inherited from class mondrian.olap.OlapElementBase
clone, computeHashCode, equals, equals, getCaption, getLocalized, hashCode, isVisible, setCaption, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface mondrian.olap.OlapElement
getCaption, getLocalized, isVisible
-
Field Details
-
keyExp
The column or expression which yields the level's key. -
ordinalExp
The column or expression which yields the level's ordinal. -
captionExp
The column or expression which yields the level members' caption. -
properties
protected mondrian.rolap.RolapProperty[] properties -
nameExp
Ths expression which gives the name of members of this level. If null, members are named using the key expression. -
parentExp
The expression which joins to the parent member in a parent-child hierarchy, or null if this is a regular hierarchy. -
xmlClosure
-
-
Method Details
-
getHierarchy
- Specified by:
getHierarchyin interfaceLevel- Specified by:
getHierarchyin interfaceOlapElement- Overrides:
getHierarchyin classLevelBase
-
getAnnotationMap
Description copied from interface:AnnotatedReturns a list of annotations.The map may be empty, never null.
- Returns:
- Map from annotation name to annotations.
-
getLogger
protected org.apache.logging.log4j.Logger getLogger()- Specified by:
getLoggerin classOlapElementBase
-
getKeyExp
-
getOrdinalExp
-
getCaptionExp
-
hasCaptionColumn
public boolean hasCaptionColumn() -
hasOrdinalExp
public boolean hasOrdinalExp() -
isUnique
public final boolean isUnique() -
getDatatype
-
isParentChild
public boolean isParentChild()Returns whether this level is parent-child. -
getNameExp
-
isAll
public final boolean isAll() -
areMembersUnique
public boolean areMembersUnique() -
getTableAlias
-
getProperties
public mondrian.rolap.RolapProperty[] getProperties()Description copied from interface:LevelReturns properties defined against this level. -
getInheritedProperties
Description copied from interface:LevelReturns properties defined against this level and parent levels. -
getApproxRowCount
public int getApproxRowCount()Description copied from interface:LevelReturns the approximate number of members in this level, orInteger.MIN_VALUEif no approximation is known. -
getInternalType
-
lookupChild
-
lookupChild
Description copied from interface:OlapElementLooks up a child element, returning null if it does not exist.- Specified by:
lookupChildin interfaceOlapElement- Overrides:
lookupChildin classLevelBase
-
isSimple
public boolean isSimple()Indicates that level is not ragged and not a parent/child level. -
getClosedPeer
-
lookupLevel
-