Package mondrian.rolap.aggmatcher
Class DefaultDef.AggRules
- java.lang.Object
-
- org.eigenbase.xom.ElementDef
-
- mondrian.rolap.aggmatcher.DefaultDef.AggRules
-
- All Implemented Interfaces:
Serializable
,Cloneable
,org.eigenbase.xom.NodeDef
- Enclosing class:
- DefaultDef
public static class DefaultDef.AggRules extends org.eigenbase.xom.ElementDef
The set of "named" rules for matching aggregate tables. Only one rule can be applied to a given connection. In addition, one rule must be set as the default - this rule is always the choice when not selecting by name. It is very important that the AggRules validate method is called prior to using any of the object.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description DefaultDef.AggRule[]
aggRules
All AggRules (at least one).DefaultDef.FactCountMatch[]
factCountMatches
All shared FactCountMatches.DefaultDef.ForeignKeyMatch[]
foreignKeyMatches
All shared ForeignKeyMatches.DefaultDef.IgnoreMap[]
ignoreMaps
All shared IgnoreMap.DefaultDef.LevelMap[]
levelMaps
All shared LevelMap.DefaultDef.MeasureMap[]
measureMaps
All shared MeasureMap.DefaultDef.TableMatch[]
tableMatches
All shared TableMatches.String
tag
-
Method Summary
-
Methods inherited from class org.eigenbase.xom.ElementDef
addChild, addChildren, clone, constructElement, constructElement, deepCopy, diff, displayAttribute, displayAttributeDiff, displayElement, displayElementArray, displayElementArrayDiff, displayElementDiff, displayIndent, displayString, displayStringArray, displayStringArrayDiff, displayStringDiff, displayXML, displayXMLElement, displayXMLElementArray, displayXMLString, displayXMLStringArray, equals, getChildren, getElementChildren, getElementClass, getLocation, getMixedChildren, getMixedChildren_new, getText, getType, getWrapper, hashCode, toCompactXML, toString, toXML, verifyEqual
-
-
-
-
Field Detail
-
tag
public String tag
-
tableMatches
public DefaultDef.TableMatch[] tableMatches
All shared TableMatches.
-
factCountMatches
public DefaultDef.FactCountMatch[] factCountMatches
All shared FactCountMatches.
-
foreignKeyMatches
public DefaultDef.ForeignKeyMatch[] foreignKeyMatches
All shared ForeignKeyMatches.
-
levelMaps
public DefaultDef.LevelMap[] levelMaps
All shared LevelMap.
-
measureMaps
public DefaultDef.MeasureMap[] measureMaps
All shared MeasureMap.
-
ignoreMaps
public DefaultDef.IgnoreMap[] ignoreMaps
All shared IgnoreMap.
-
aggRules
public DefaultDef.AggRule[] aggRules
All AggRules (at least one). Also, one of them must be marked with default=true.
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfaceorg.eigenbase.xom.NodeDef
- Overrides:
getName
in classorg.eigenbase.xom.ElementDef
-
display
public void display(PrintWriter _out, int _indent)
-
displayXML
public void displayXML(org.eigenbase.xom.XMLOutput _out, int _indent)
- Specified by:
displayXML
in interfaceorg.eigenbase.xom.NodeDef
- Overrides:
displayXML
in classorg.eigenbase.xom.ElementDef
-
displayDiff
public boolean displayDiff(org.eigenbase.xom.ElementDef _other, PrintWriter _out, int _indent)
- Overrides:
displayDiff
in classorg.eigenbase.xom.ElementDef
-
getLogger
protected static org.apache.logging.log4j.Logger getLogger()
-
getTag
public String getTag()
-
getAggRule
public DefaultDef.AggRule getAggRule(String tag)
-
validate
public void validate(MessageRecorder msgRecorder)
-
hasIgnoreMap
public boolean hasIgnoreMap(String id)
-
lookupIgnoreMap
public DefaultDef.IgnoreMap lookupIgnoreMap(String id)
-
hasFactCountMatch
public boolean hasFactCountMatch(String id)
-
lookupFactCountMatch
public DefaultDef.FactCountMatch lookupFactCountMatch(String id)
-
hasForeignKeyMatch
public boolean hasForeignKeyMatch(String id)
-
lookupForeignKeyMatch
public DefaultDef.ForeignKeyMatch lookupForeignKeyMatch(String id)
-
hasTableMatch
public boolean hasTableMatch(String id)
-
lookupTableMatch
public DefaultDef.TableMatch lookupTableMatch(String id)
-
hasLevelMap
public boolean hasLevelMap(String id)
-
lookupLevelMap
public DefaultDef.LevelMap lookupLevelMap(String id)
-
hasMeasureMap
public boolean hasMeasureMap(String id)
-
lookupMeasureMap
public DefaultDef.MeasureMap lookupMeasureMap(String id)
-
hasAggRule
public boolean hasAggRule(String id)
-
lookupAggRule
public DefaultDef.AggRule lookupAggRule(String id)
-
getIgnoreMaps
public DefaultDef.IgnoreMap[] getIgnoreMaps()
-
getFactCountMatches
public DefaultDef.FactCountMatch[] getFactCountMatches()
-
getForeignKeyMatches
public DefaultDef.ForeignKeyMatch[] getForeignKeyMatches()
-
getTableMatches
public DefaultDef.TableMatch[] getTableMatches()
-
getLevelMaps
public DefaultDef.LevelMap[] getLevelMaps()
-
getMeasureMaps
public DefaultDef.MeasureMap[] getMeasureMaps()
-
getAggRules
public DefaultDef.AggRule[] getAggRules()
-
-