public class SequenceFileInputFilter<K,V> extends SequenceFileInputFormat<K,V>
限定符和类型 | 类和说明 |
---|---|
static interface |
SequenceFileInputFilter.Filter
filter interface
|
static class |
SequenceFileInputFilter.FilterBase
base class for Filters
|
static class |
SequenceFileInputFilter.MD5Filter
This class returns a set of records by examing the MD5 digest of its
key against a filtering frequency f.
|
static class |
SequenceFileInputFilter.PercentFilter
This class returns a percentage of records
The percentage is determined by a filtering frequency f using
the criteria record# % f == 0.
|
static class |
SequenceFileInputFilter.RegexFilter
Records filter by matching key to regex
|
FileInputFormat.Counter
LOG
构造器和说明 |
---|
SequenceFileInputFilter() |
限定符和类型 | 方法和说明 |
---|---|
RecordReader<K,V> |
getRecordReader(InputSplit split,
JobConf job,
Reporter reporter)
Create a record reader for the given split
|
static void |
setFilterClass(Configuration conf,
Class filterClass)
set the filter class
|
listStatus
addInputPath, addInputPaths, computeSplitSize, getBlockIndex, getInputPathFilter, getInputPaths, getSplitHosts, getSplits, isSplitable, setInputPathFilter, setInputPaths, setInputPaths, setMinSplitSize
public RecordReader<K,V> getRecordReader(InputSplit split, JobConf job, Reporter reporter) throws IOException
getRecordReader
在接口中 InputFormat<K,V>
getRecordReader
在类中 SequenceFileInputFormat<K,V>
split
- file splitjob
- job configurationreporter
- reporter who sends report to task trackerIOException
public static void setFilterClass(Configuration conf, Class filterClass)
conf
- application configurationfilterClass
- filter classCopyright © 2009 The Apache Software Foundation