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
 
 public class RolapLevel extends LevelBase RolapLevelimplementsLevelfor a ROLAP database.- Since:
- 10 August, 2001
- Author:
- jhyde
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classRolapLevel.HideMemberConditionConditions under which a level's members may be hidden (thereby creating a ragged hierarchy).- 
Nested classes/interfaces inherited from interface mondrian.olap.OlapElementOlapElement.LocalizedProperty
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected MondrianDef.ExpressioncaptionExpThe column or expression which yields the level members' caption.protected MondrianDef.ExpressionkeyExpThe column or expression which yields the level's key.protected MondrianDef.ExpressionnameExpThs expression which gives the name of members of this level.protected MondrianDef.ExpressionordinalExpThe column or expression which yields the level's ordinal.protected MondrianDef.ExpressionparentExpThe expression which joins to the parent member in a parent-child hierarchy, or null if this is a regular hierarchy.protected mondrian.rolap.RolapProperty[]propertiesprotected MondrianDef.ClosurexmlClosure- 
Fields inherited from class mondrian.olap.LevelBaseapproxRowCount, depth, description, hierarchy, levelType, memberFormatter, name, uniqueName
 - 
Fields inherited from class mondrian.olap.OlapElementBasecaption, visible
 
- 
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanareMembersUnique()Map<String,Annotation>getAnnotationMap()Returns a list of annotations.intgetApproxRowCount()Returns the approximate number of members in this level, orInteger.MIN_VALUEif no approximation is known.MondrianDef.ExpressiongetCaptionExp()RolapLevelgetClosedPeer()Dialect.DatatypegetDatatype()RolapHierarchygetHierarchy()Property[]getInheritedProperties()Returns properties defined against this level and parent levels.SqlStatement.TypegetInternalType()MondrianDef.ExpressiongetKeyExp()protected org.apache.logging.log4j.LoggergetLogger()MondrianDef.ExpressiongetNameExp()MondrianDef.ExpressiongetOrdinalExp()mondrian.rolap.RolapProperty[]getProperties()Returns properties defined against this level.StringgetTableAlias()booleanhasCaptionColumn()booleanhasOrdinalExp()booleanisAll()booleanisParentChild()Returns whether this level is parent-child.booleanisSimple()Indicates that level is not ragged and not a parent/child level.booleanisUnique()OlapElementlookupChild(SchemaReader schemaReader, Id.Segment name)OlapElementlookupChild(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.LevelBasegetChildLevel, getDepth, getDescription, getDimension, getLevelType, getMemberFormatter, getName, getParentLevel, getQualifiedName, getUniqueName, isMeasure, setApproxRowCount
 - 
Methods inherited from class mondrian.olap.OlapElementBaseclone, computeHashCode, equals, equals, getCaption, getLocalized, hashCode, isVisible, setCaption, toString
 - 
Methods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface mondrian.olap.OlapElementgetCaption, getLocalized, isVisible
 
- 
 
- 
- 
- 
Field Detail- 
keyExpprotected MondrianDef.Expression keyExp The column or expression which yields the level's key.
 - 
ordinalExpprotected MondrianDef.Expression ordinalExp The column or expression which yields the level's ordinal.
 - 
captionExpprotected MondrianDef.Expression captionExp The column or expression which yields the level members' caption.
 - 
propertiesprotected mondrian.rolap.RolapProperty[] properties 
 - 
nameExpprotected MondrianDef.Expression nameExp Ths expression which gives the name of members of this level. If null, members are named using the key expression.
 - 
parentExpprotected MondrianDef.Expression parentExp The expression which joins to the parent member in a parent-child hierarchy, or null if this is a regular hierarchy.
 - 
xmlClosureprotected final MondrianDef.Closure xmlClosure 
 
- 
 - 
Method Detail- 
getHierarchypublic RolapHierarchy getHierarchy() - Specified by:
- getHierarchyin interface- Level
- Specified by:
- getHierarchyin interface- OlapElement
- Overrides:
- getHierarchyin class- LevelBase
 
 - 
getAnnotationMappublic Map<String,Annotation> getAnnotationMap() Description copied from interface:AnnotatedReturns a list of annotations.The map may be empty, never null. - Returns:
- Map from annotation name to annotations.
 
 - 
getLoggerprotected org.apache.logging.log4j.Logger getLogger() - Specified by:
- getLoggerin class- OlapElementBase
 
 - 
getKeyExppublic MondrianDef.Expression getKeyExp() 
 - 
getOrdinalExppublic MondrianDef.Expression getOrdinalExp() 
 - 
getCaptionExppublic MondrianDef.Expression getCaptionExp() 
 - 
hasCaptionColumnpublic boolean hasCaptionColumn() 
 - 
hasOrdinalExppublic boolean hasOrdinalExp() 
 - 
isUniquepublic final boolean isUnique() 
 - 
getDatatypepublic final Dialect.Datatype getDatatype() 
 - 
isParentChildpublic boolean isParentChild() Returns whether this level is parent-child.
 - 
getNameExppublic MondrianDef.Expression getNameExp() 
 - 
isAllpublic final boolean isAll() 
 - 
areMembersUniquepublic boolean areMembersUnique() 
 - 
getTableAliaspublic String getTableAlias() 
 - 
getPropertiespublic mondrian.rolap.RolapProperty[] getProperties() Description copied from interface:LevelReturns properties defined against this level.
 - 
getInheritedPropertiespublic Property[] getInheritedProperties() Description copied from interface:LevelReturns properties defined against this level and parent levels.
 - 
getApproxRowCountpublic int getApproxRowCount() Description copied from interface:LevelReturns the approximate number of members in this level, orInteger.MIN_VALUEif no approximation is known.
 - 
getInternalTypepublic SqlStatement.Type getInternalType() 
 - 
lookupChildpublic OlapElement lookupChild(SchemaReader schemaReader, Id.Segment name) 
 - 
lookupChildpublic OlapElement lookupChild(SchemaReader schemaReader, Id.Segment name, MatchType matchType) Description copied from interface:OlapElementLooks up a child element, returning null if it does not exist.- Specified by:
- lookupChildin interface- OlapElement
- Overrides:
- lookupChildin class- LevelBase
 
 - 
isSimplepublic boolean isSimple() Indicates that level is not ragged and not a parent/child level.
 - 
getClosedPeerpublic RolapLevel getClosedPeer() 
 - 
lookupLevelpublic static RolapLevel lookupLevel(RolapLevel[] levels, String levelName) 
 
- 
 
-