|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.olap.OlapElementBase
mondrian.olap.LevelBase
mondrian.rolap.RolapLevel
public class RolapLevel
RolapLevel implements Level for a ROLAP database.
| Nested Class Summary | |
|---|---|
static class |
RolapLevel.HideMemberCondition
Conditions under which a level's members may be hidden (thereby creating a ragged hierarchy). |
| Field Summary | |
|---|---|
protected MondrianDef.Expression |
captionExp
The column or expression which yields the level members' caption. |
(package private) static int |
FLAG_ALL
|
(package private) static int |
FLAG_UNIQUE
For SQL generator. |
protected MondrianDef.Expression |
keyExp
The column or expression which yields the level's key. |
protected MondrianDef.Expression |
nameExp
Ths expression which gives the name of members of this level. |
protected MondrianDef.Expression |
ordinalExp
The column or expression which yields the level's ordinal. |
protected MondrianDef.Expression |
parentExp
The expression which joins to the parent member in a parent-child hierarchy, or null if this is a regular hierarchy. |
protected MondrianDef.Closure |
xmlClosure
|
| Fields inherited from class mondrian.olap.LevelBase |
|---|
approxRowCount, depth, description, hierarchy, levelType, memberFormatter, name, uniqueName |
| Fields inherited from class mondrian.olap.OlapElementBase |
|---|
caption |
| Constructor Summary | |
|---|---|
RolapLevel(RolapHierarchy hierarchy,
int depth,
MondrianDef.Level xmlLevel)
|
|
RolapLevel(RolapHierarchy hierarchy,
int depth,
java.lang.String name,
MondrianDef.Expression keyExp,
MondrianDef.Expression nameExp,
MondrianDef.Expression captionExp,
MondrianDef.Expression ordinalExp,
MondrianDef.Expression parentExp,
java.lang.String nullParentValue,
MondrianDef.Closure xmlClosure,
RolapProperty[] properties,
int flags,
Dialect.Datatype datatype,
RolapLevel.HideMemberCondition hideMemberCondition,
LevelType levelType,
java.lang.String approxRowCount)
Creates a level. |
|
| Method Summary | |
|---|---|
boolean |
areMembersUnique()
|
int |
getApproxRowCount()
Returns the approximate number of members in this level, or Integer.MIN_VALUE if no approximation is known. |
MondrianDef.Expression |
getCaptionExp()
|
RolapLevel |
getClosedPeer()
|
(package private) Dialect.Datatype |
getDatatype()
|
(package private) int |
getFlags()
|
(package private) RolapLevel.HideMemberCondition |
getHideMemberCondition()
|
RolapHierarchy |
getHierarchy()
|
Property[] |
getInheritedProperties()
Returns properties defined against this level and parent levels. |
MondrianDef.Expression |
getKeyExp()
|
protected org.apache.log4j.Logger |
getLogger()
|
MondrianDef.Expression |
getNameExp()
|
(package private) java.lang.String |
getNullParentValue()
|
(package private) MondrianDef.Expression |
getOrdinalExp()
|
(package private) MondrianDef.Expression |
getParentExp()
|
RolapProperty[] |
getProperties()
Returns properties defined against this level. |
java.lang.String |
getTableAlias()
|
(package private) java.lang.String |
getTableName()
|
boolean |
hasCaptionColumn()
|
(package private) boolean |
hasClosedPeer()
Returns true when the level is part of a parent/child hierarchy and has an equivalent closed level. |
(package private) void |
init(MondrianDef.CubeDimension xmlDimension)
|
boolean |
isAll()
|
boolean |
isParentChild()
Returns whether this level is parent-child. |
boolean |
isUnique()
|
OlapElement |
lookupChild(SchemaReader schemaReader,
Id.Segment name)
|
OlapElement |
lookupChild(SchemaReader schemaReader,
Id.Segment name,
MatchType matchType)
Looks up a child element, returning null if it does not exist. |
static RolapLevel |
lookupLevel(RolapLevel[] levels,
java.lang.String levelName)
|
| Methods inherited from class mondrian.olap.LevelBase |
|---|
getChildLevel, getDepth, getDescription, getDimension, getLevelType, getMemberFormatter, getName, getParentLevel, getQualifiedName, getUniqueName, isMeasure, setApproxRowCount |
| Methods inherited from class mondrian.olap.OlapElementBase |
|---|
clone, computeHashCode, equals, equals, getCaption, hashCode, setCaption, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface mondrian.olap.OlapElement |
|---|
getCaption |
| Field Detail |
|---|
protected MondrianDef.Expression keyExp
protected MondrianDef.Expression ordinalExp
protected MondrianDef.Expression captionExp
static final int FLAG_ALL
static final int FLAG_UNIQUE
protected MondrianDef.Expression nameExp
protected MondrianDef.Expression parentExp
protected final MondrianDef.Closure xmlClosure
| Constructor Detail |
|---|
RolapLevel(RolapHierarchy hierarchy,
int depth,
java.lang.String name,
MondrianDef.Expression keyExp,
MondrianDef.Expression nameExp,
MondrianDef.Expression captionExp,
MondrianDef.Expression ordinalExp,
MondrianDef.Expression parentExp,
java.lang.String nullParentValue,
MondrianDef.Closure xmlClosure,
RolapProperty[] properties,
int flags,
Dialect.Datatype datatype,
RolapLevel.HideMemberCondition hideMemberCondition,
LevelType levelType,
java.lang.String approxRowCount)
RolapLevel(RolapHierarchy hierarchy,
int depth,
MondrianDef.Level xmlLevel)
| Method Detail |
|---|
public RolapHierarchy getHierarchy()
getHierarchy in interface LevelgetHierarchy in interface OlapElementgetHierarchy in class LevelBaseprotected org.apache.log4j.Logger getLogger()
getLogger in class OlapElementBasejava.lang.String getTableName()
public MondrianDef.Expression getKeyExp()
MondrianDef.Expression getOrdinalExp()
public MondrianDef.Expression getCaptionExp()
public boolean hasCaptionColumn()
final int getFlags()
RolapLevel.HideMemberCondition getHideMemberCondition()
public final boolean isUnique()
final Dialect.Datatype getDatatype()
final java.lang.String getNullParentValue()
public boolean isParentChild()
MondrianDef.Expression getParentExp()
public MondrianDef.Expression getNameExp()
void init(MondrianDef.CubeDimension xmlDimension)
public final boolean isAll()
isAll in interface LevelisAll in class LevelBasepublic boolean areMembersUnique()
public java.lang.String getTableAlias()
public RolapProperty[] getProperties()
Level
public Property[] getInheritedProperties()
Level
public int getApproxRowCount()
LevelInteger.MIN_VALUE if no approximation is known.
public OlapElement lookupChild(SchemaReader schemaReader,
Id.Segment name)
public OlapElement lookupChild(SchemaReader schemaReader,
Id.Segment name,
MatchType matchType)
OlapElement
lookupChild in interface OlapElementlookupChild in class LevelBaseboolean hasClosedPeer()
public RolapLevel getClosedPeer()
public static RolapLevel lookupLevel(RolapLevel[] levels,
java.lang.String levelName)
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||