public static class SequenceFileInputFilter.MD5Filter extends SequenceFileInputFilter.FilterBase
限定符和类型 | 字段和说明 |
---|---|
static int |
MD5_LEN |
构造器和说明 |
---|
SequenceFileInputFilter.MD5Filter() |
限定符和类型 | 方法和说明 |
---|---|
boolean |
accept(Object key)
Filtering method
If MD5(key) % frequency==0, return true; otherwise return false
|
void |
setConf(Configuration conf)
configure the filter according to configuration
|
static void |
setFrequency(Configuration conf,
int frequency)
set the filtering frequency in configuration
|
getConf
public static final int MD5_LEN
public static void setFrequency(Configuration conf, int frequency)
conf
- configurationfrequency
- filtering frequencypublic void setConf(Configuration conf)
conf
- configurationpublic boolean accept(Object key)
key
- record keySequenceFileInputFilter.Filter.accept(Object)
Copyright © 2009 The Apache Software Foundation