de.fuberlin.wiwiss.d2rq.mapgen
Class Filter
java.lang.Object
de.fuberlin.wiwiss.d2rq.mapgen.Filter
- Direct Known Subclasses:
- FilterIncludeExclude, FilterMatchAny, FilterMatchColumn, FilterMatchSchema, FilterMatchTable
public abstract class Filter
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ALL
public static final Filter ALL
NOTHING
public static final Filter NOTHING
NULL_MATCHER
public static final Filter.IdentifierMatcher NULL_MATCHER
Filter
public Filter()
matchesSchema
public abstract boolean matchesSchema(String schema)
matchesTable
public abstract boolean matchesTable(String schema,
String table)
matchesColumn
public abstract boolean matchesColumn(String schema,
String table,
String column)
getSingleSchema
public abstract String getSingleSchema()
- Returns:
- If the filter matches only a single schema, then its name; otherwise,
null
matches
public boolean matches(RelationName table)
matches
public boolean matches(Attribute column)
matchesAll
public boolean matchesAll(Collection<Attribute> columns)
sameSchema
protected boolean sameSchema(String schema1,
String schema2)
createStringMatcher
public static Filter.IdentifierMatcher createStringMatcher(String s)
createPatternMatcher
public static Filter.IdentifierMatcher createPatternMatcher(Pattern pattern)