public static class SequenceFileInputFilter.PercentFilter extends SequenceFileInputFilter.FilterBase
构造器和说明 |
---|
SequenceFileInputFilter.PercentFilter() |
限定符和类型 | 方法和说明 |
---|---|
boolean |
accept(Object key)
Filtering method
If record# % frequency==0, return true; otherwise return false
|
void |
setConf(Configuration conf)
configure the filter by checking the configuration
|
static void |
setFrequency(Configuration conf,
int frequency)
set the frequency and stores it in conf
|
getConf
public static void setFrequency(Configuration conf, int frequency)
conf
- configurationfrequency
- filtering frequenceypublic void setConf(Configuration conf)
conf
- configurationpublic boolean accept(Object key)
key
- record keySequenceFileInputFilter.Filter.accept(Object)
Copyright © 2009 The Apache Software Foundation