Package mondrian.rolap.aggmatcher
Class ExplicitRules.PatternTableDef
- java.lang.Object
-
- mondrian.rolap.aggmatcher.ExplicitRules.TableDef
-
- mondrian.rolap.aggmatcher.ExplicitRules.PatternTableDef
-
- Enclosing class:
- ExplicitRules
public static class ExplicitRules.PatternTableDef extends ExplicitRules.TableDef
This class matches candidate aggregate table name with a pattern.
-
-
Field Summary
-
Fields inherited from class mondrian.rolap.aggmatcher.ExplicitRules.TableDef
aggGroup, approxRowCount, factCountName, id, ignoreCase, ignoreColumnNames, measuresFactCount
-
-
Constructor Summary
Constructors Constructor Description PatternTableDef(String pattern, boolean ignoreCase, ExplicitRules.Group group)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<mondrian.rolap.aggmatcher.ExplicitRules.Exclude>
getExcludes()
Get an Iterator over the list of Excludes.Pattern
getPattern()
Get the Pattern.boolean
matches(String tableName)
Return true if the tableName 1) matches the pattern and 2) is not matched by any of the Excludes.void
print(PrintWriter pw, String prefix)
void
validate(MessageRecorder msgRecorder)
Validate excludes and base class.-
Methods inherited from class mondrian.rolap.aggmatcher.ExplicitRules.TableDef
add, add, addFK, addIgnoreColumnName, addLevelTo, addMeasureTo, columnsOK, getAggGroup, getAggregateFK, getApproxRowCount, getFactCountMatcher, getFactCountName, getIgnoreColumnNames, getIgnoreMatcher, getLevels, getMeasureFactCountMatcher, getMeasures, getMeasuresFactCount, getStar, isIgnoreCase, setFactCountName, toString
-
-
-
-
Constructor Detail
-
PatternTableDef
public PatternTableDef(String pattern, boolean ignoreCase, ExplicitRules.Group group)
-
-
Method Detail
-
getPattern
public Pattern getPattern()
Get the Pattern.
-
getExcludes
public List<mondrian.rolap.aggmatcher.ExplicitRules.Exclude> getExcludes()
Get an Iterator over the list of Excludes.
-
matches
public boolean matches(String tableName)
Return true if the tableName 1) matches the pattern and 2) is not matched by any of the Excludes.- Specified by:
matches
in classExplicitRules.TableDef
-
validate
public void validate(MessageRecorder msgRecorder)
Validate excludes and base class.- Overrides:
validate
in classExplicitRules.TableDef
-
print
public void print(PrintWriter pw, String prefix)
- Overrides:
print
in classExplicitRules.TableDef
-
-