mondrian.rolap.aggmatcher
Class ExplicitRules.PatternTableDef

java.lang.Object
  extended by mondrian.rolap.aggmatcher.ExplicitRules.TableDef
      extended by 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, factCountName, id, ignoreCase, ignoreColumnNames
 
Constructor Summary
ExplicitRules.PatternTableDef(String pattern, boolean ignoreCase, ExplicitRules.Group group)
           
 
Method Summary
 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, getCube, getFactCountMatcher, getFactCountName, getId, getIgnoreColumnNames, getIgnoreMatcher, getLevels, getMeasures, getStar, isIgnoreCase, make, setFactCountName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExplicitRules.PatternTableDef

public ExplicitRules.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 class ExplicitRules.TableDef

validate

public void validate(MessageRecorder msgRecorder)
Validate excludes and base class.

Overrides:
validate in class ExplicitRules.TableDef

print

public void print(PrintWriter pw,
                  String prefix)
Overrides:
print in class ExplicitRules.TableDef

SourceForge.net_Logo