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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class mondrian.rolap.aggmatcher.ExplicitRules.TableDef
ExplicitRules.TableDef.Level, ExplicitRules.TableDef.Measure
-
-
Field Summary
-
Fields inherited from class mondrian.rolap.aggmatcher.ExplicitRules.TableDef
aggGroup, approxRowCount, factCountName, id, ignoreCase, ignoreColumnNames
-
-
Constructor Summary
Constructors Constructor Description PatternTableDef(String pattern, boolean ignoreCase, ExplicitRules.Group group)
-
Method Summary
All Methods Static 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.(package private) static ExplicitRules.PatternTableDef
make(MondrianDef.AggPattern aggPattern, ExplicitRules.Group group)
Make a PatternTableDef from the catalog schema.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, getCube, getFactCountMatcher, getFactCountName, getIgnoreColumnNames, getIgnoreMatcher, getLevels, getMeasures, getStar, isIgnoreCase, make, setFactCountName, toString
-
-
-
-
Constructor Detail
-
PatternTableDef
public PatternTableDef(String pattern, boolean ignoreCase, ExplicitRules.Group group)
-
-
Method Detail
-
make
static ExplicitRules.PatternTableDef make(MondrianDef.AggPattern aggPattern, ExplicitRules.Group group)
Make a PatternTableDef from the catalog schema.
-
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
-
-