Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
com.cloudera.impala.util.PatternMatcher Class Reference
Collaboration diagram for com.cloudera.impala.util.PatternMatcher:

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_
 

Detailed Description

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.

Member Function Documentation

static PatternMatcher com.cloudera.impala.util.PatternMatcher.createHivePatternMatcher ( String  hivePattern)
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.

static PatternMatcher com.cloudera.impala.util.PatternMatcher.createJdbcPatternMatcher ( String  pattern)
inlinestatic

Creates a matcher object for JDBC match strings.

Definition at line 71 of file PatternMatcher.java.

Member Data Documentation

List<Pattern> com.cloudera.impala.util.PatternMatcher.patterns_
private

Definition at line 32 of file PatternMatcher.java.

Referenced by com.cloudera.impala.util.PatternMatcher.matches().


The documentation for this class was generated from the following file: