public static class SequenceFileInputFilter.RegexFilter extends SequenceFileInputFilter.FilterBase
| Constructor and Description |
|---|
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(org.apache.hadoop.conf.Configuration conf)
configure the Filter by checking the configuration
|
static void |
setPattern(org.apache.hadoop.conf.Configuration conf,
String regex)
Define the filtering regex and stores it in conf
|
getConfpublic static void setPattern(org.apache.hadoop.conf.Configuration conf,
String regex)
throws PatternSyntaxException
conf - where the regex is setregex - regex used as a filterPatternSyntaxExceptionpublic void setConf(org.apache.hadoop.conf.Configuration conf)
public boolean accept(Object key)
key - record keySequenceFileInputFilter.Filter.accept(Object)Copyright © 2008–2022 Apache Software Foundation. All rights reserved.