Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
Public Member Functions | |
boolean | matches (String candidate) |
Static Public Member Functions | |
static PatternMatcher | createHivePatternMatcher (String hivePattern) |
static PatternMatcher | createJdbcPatternMatcher (String pattern) |
Private Attributes | |
List< Pattern > | patterns_ |
Utility class to handle pattern-matching for different types of patterns ( e.g. hive SHOW patterns, JDBC patterns). It maps those patterns onto the java regex pattern objects.
Definition at line 29 of file PatternMatcher.java.
|
inlinestatic |
Creates a pattern matcher for hive patterns. The only metacharacters are '*' which matches any string of characters, and '|' which denotes choice. If hivePattern is null, all strings are considered to match. If it is the empty string, no strings match.
Definition at line 51 of file PatternMatcher.java.
|
inlinestatic |
Creates a matcher object for JDBC match strings.
Definition at line 71 of file PatternMatcher.java.
|
inline |
Definition at line 35 of file PatternMatcher.java.
References com.cloudera.impala.util.PatternMatcher.patterns_.
Referenced by com.cloudera.impala.catalog.Catalog.filterStringsByPattern(), com.cloudera.impala.service.MetadataOp.getDbsMetadata(), and com.cloudera.impala.catalog.Db.getFunctions().
|
private |
Definition at line 32 of file PatternMatcher.java.
Referenced by com.cloudera.impala.util.PatternMatcher.matches().