public static class SequenceFileInputFilter.RegexFilter extends SequenceFileInputFilter.FilterBase
| Constructor and Description |
|---|
SequenceFileInputFilter.RegexFilter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(java.lang.Object key)
Filtering method
If key matches the regex, return true; otherwise return false
|
void |
setConf(org.apache.hadoop.conf.Configuration conf)
configure the Filter by checking the configuration
|
static void |
setPattern(org.apache.hadoop.conf.Configuration conf,
java.lang.String regex)
Define the filtering regex and stores it in conf
|
getConfpublic static void setPattern(org.apache.hadoop.conf.Configuration conf,
java.lang.String regex)
throws java.util.regex.PatternSyntaxException
conf - where the regex is setregex - regex used as a filterjava.util.regex.PatternSyntaxExceptionpublic void setConf(org.apache.hadoop.conf.Configuration conf)
public boolean accept(java.lang.Object key)
key - record keySequenceFileInputFilter.Filter.accept(Object)Copyright © 2009 The Apache Software Foundation