|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase
org.apache.hadoop.mapred.SequenceFileInputFilter.RegexFilter
public static class SequenceFileInputFilter.RegexFilter
Records filter by matching key to regex
Constructor Summary | |
---|---|
SequenceFileInputFilter.RegexFilter()
|
Method Summary | |
---|---|
boolean |
accept(java.lang.Object key)
Filtering method If key matches the regex, return true; otherwise return false |
void |
setConf(Configuration conf)
configure the Filter by checking the configuration |
static void |
setPattern(Configuration conf,
java.lang.String regex)
Define the filtering regex and stores it in conf |
Methods inherited from class org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase |
---|
getConf |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SequenceFileInputFilter.RegexFilter()
Method Detail |
---|
public static void setPattern(Configuration conf, java.lang.String regex) throws java.util.regex.PatternSyntaxException
conf
- where the regex is setregex
- regex used as a filter
java.util.regex.PatternSyntaxException
public void setConf(Configuration conf)
public boolean accept(java.lang.Object key)
key
- record key
SequenceFileInputFilter.Filter.accept(Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |