public static class SequenceFileInputFilter.RegexFilter extends SequenceFileInputFilter.FilterBase
| 构造器和说明 |
|---|
SequenceFileInputFilter.RegexFilter() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
accept(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,
String regex)
Define the filtering regex and stores it in conf
|
getConfpublic static void setPattern(Configuration conf, String regex) throws PatternSyntaxException
conf - where the regex is setregex - regex used as a filterPatternSyntaxExceptionpublic void setConf(Configuration conf)
public boolean accept(Object key)
key - record keySequenceFileInputFilter.Filter.accept(Object)Copyright © 2009 The Apache Software Foundation