org.apache.hadoop.mapred
Class SequenceFileInputFormat<K,V>
java.lang.Object
org.apache.hadoop.mapred.FileInputFormat<K,V>
org.apache.hadoop.mapred.SequenceFileInputFormat<K,V>
- All Implemented Interfaces:
- InputFormat<K,V>
- Direct Known Subclasses:
- SequenceFileAsBinaryInputFormat, SequenceFileAsTextInputFormat, SequenceFileInputFilter
public class SequenceFileInputFormat<K,V>
- extends FileInputFormat<K,V>
An InputFormat for SequenceFiles.
| Methods inherited from class org.apache.hadoop.mapred.FileInputFormat |
addInputPath, addInputPaths, computeSplitSize, getBlockIndex, getInputPathFilter, getInputPaths, getSplitHosts, getSplits, isSplitable, setInputPathFilter, setInputPaths, setInputPaths, setMinSplitSize |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SequenceFileInputFormat
public SequenceFileInputFormat()
listStatus
protected FileStatus[] listStatus(JobConf job)
throws IOException
- Description copied from class:
FileInputFormat
- List input directories.
Subclasses may override to, e.g., select only files matching a regular
expression.
- Overrides:
listStatus in class FileInputFormat<K,V>
- Parameters:
job - the job to list input paths for
- Returns:
- array of FileStatus objects
- Throws:
IOException - if zero items.
getRecordReader
public RecordReader<K,V> getRecordReader(InputSplit split,
JobConf job,
Reporter reporter)
throws IOException
- Description copied from interface:
InputFormat
- Get the
RecordReader for the given InputSplit.
It is the responsibility of the RecordReader to respect
record boundaries while processing the logical split to present a
record-oriented view to the individual task.
- Specified by:
getRecordReader in interface InputFormat<K,V>- Specified by:
getRecordReader in class FileInputFormat<K,V>
- Parameters:
split - the InputSplitjob - the job that this split belongs to
- Returns:
- a
RecordReader
- Throws:
IOException
Copyright © 2009 The Apache Software Foundation