public static class SequenceFileInputFilter.RegexFilter extends SequenceFileInputFilter.FilterBase
| Constructor and Description |
|---|
SequenceFileInputFilter.RegexFilter() |
| Modifier and Type | Method and Description |
|---|---|
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) |
getConfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfpublic static void setPattern(Configuration conf, String regex) throws PatternSyntaxException
PatternSyntaxExceptionpublic void setConf(Configuration conf)
public boolean accept(Object key)
key - record keySequenceFileInputFilter.Filter.accept(Object)Copyright © 2013 Apache Software Foundation. All rights reserved.