Package mondrian.rolap.aggmatcher
Class ExplicitRules.TableDef.Level
- java.lang.Object
-
- mondrian.rolap.aggmatcher.ExplicitRules.TableDef.Level
-
- Enclosing class:
- ExplicitRules.TableDef
class ExplicitRules.TableDef.Level extends Object
This class is used to map from a Level's symbolic name, [Time].[Year] to the aggregate table's column name, TIME_YEAR.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCaptionColumn()StringgetColumnName()Get the foreign key column name of the aggregate table.StringgetName()Get the symbolic name, the level name.StringgetOrdinalColumn()Map<String,String>getProperties()MondrianDef.ExpressiongetRolapFieldName()RolapLevelgetRolapLevel()Get the RolapLevel associated with level name.booleanisCollapsed()Returns whether this level is collapsed (includes parent levels in the agg table).voidprint(PrintWriter pw, String prefix)StringtoString()voidvalidate(MessageRecorder msgRecorder)Validates a level's name.
-
-
-
Constructor Detail
-
Level
Level(String name, String columnName, boolean collapsed, String ordinalColumn, String captionColumn, MondrianDef.AggLevelProperty[] properties)
-
-
Method Detail
-
getName
public String getName()
Get the symbolic name, the level name.
-
getColumnName
public String getColumnName()
Get the foreign key column name of the aggregate table.
-
isCollapsed
public boolean isCollapsed()
Returns whether this level is collapsed (includes parent levels in the agg table).
-
getRolapLevel
public RolapLevel getRolapLevel()
Get the RolapLevel associated with level name.
-
getRolapFieldName
public MondrianDef.Expression getRolapFieldName()
-
validate
public void validate(MessageRecorder msgRecorder)
Validates a level's name.The level name must be of the form
[hierarchy usage name].[level name].This method checks that is of length 2, starts with a hierarchy and the "level name" exists.
-
print
public void print(PrintWriter pw, String prefix)
-
getOrdinalColumn
public String getOrdinalColumn()
-
getCaptionColumn
public String getCaptionColumn()
-
-