org.apache.hadoop.mapred
Class SequenceFileInputFilter
java.lang.Object
org.apache.hadoop.mapred.FileInputFormat
org.apache.hadoop.mapred.SequenceFileInputFormat
org.apache.hadoop.mapred.SequenceFileInputFilter
- All Implemented Interfaces:
- InputFormat
public class SequenceFileInputFilter
- extends SequenceFileInputFormat
A class that allows a map/red job to work on a sample of sequence files.
The sample is decided by the filter class set by the job.
- Author:
- hairong
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SequenceFileInputFilter
public SequenceFileInputFilter()
getRecordReader
public RecordReader getRecordReader(InputSplit split,
JobConf job,
Reporter reporter)
throws IOException
- Create a record reader for the given split
- Specified by:
getRecordReader
in interface InputFormat
- Overrides:
getRecordReader
in class SequenceFileInputFormat
- Parameters:
split
- file splitjob
- job configurationreporter
- reporter who sends report to task tracker
- Returns:
- RecordReader
- Throws:
IOException
setFilterClass
public static void setFilterClass(Configuration conf,
Class filterClass)
- set the filter class
- Parameters:
conf
- application configurationfilterClass
- filter class
Copyright © 2006 The Apache Software Foundation