Package com.zendesk.maxwell.filtering
Class FilterPattern
- java.lang.Object
-
- com.zendesk.maxwell.filtering.FilterPattern
-
- Direct Known Subclasses:
FilterColumnPattern
public class FilterPattern extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected FilterPatternType
type
-
Constructor Summary
Constructors Constructor Description FilterPattern(FilterPatternType type, Pattern dbPattern, Pattern tablePattern)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
appliesTo(String database, String table)
boolean
couldIncludeColumn(String database, String table, Set<String> columns)
Pattern
getDatabasePattern()
Pattern
getTablePattern()
FilterPatternType
getType()
void
match(String database, String table, com.zendesk.maxwell.filtering.FilterResult match)
void
matchValue(String database, String table, Map<String,Object> data, com.zendesk.maxwell.filtering.FilterResult match)
protected String
patternToString(Pattern p)
String
toString()
-
-
-
Field Detail
-
type
protected final FilterPatternType type
-
-
Constructor Detail
-
FilterPattern
public FilterPattern(FilterPatternType type, Pattern dbPattern, Pattern tablePattern)
-
-
Method Detail
-
match
public void match(String database, String table, com.zendesk.maxwell.filtering.FilterResult match)
-
matchValue
public void matchValue(String database, String table, Map<String,Object> data, com.zendesk.maxwell.filtering.FilterResult match)
-
getType
public FilterPatternType getType()
-
getDatabasePattern
public Pattern getDatabasePattern()
-
getTablePattern
public Pattern getTablePattern()
-
-