org.apache.hadoop.mapred
Class SequenceFileInputFormat
java.lang.Object
org.apache.hadoop.mapred.FileInputFormat
org.apache.hadoop.mapred.SequenceFileInputFormat
- All Implemented Interfaces:
- InputFormat
- Direct Known Subclasses:
- SequenceFileAsTextInputFormat, SequenceFileInputFilter
public class SequenceFileInputFormat
- extends FileInputFormat
An InputFormat
for SequenceFile
s.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SequenceFileInputFormat
public SequenceFileInputFormat()
listPaths
protected Path[] listPaths(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:
listPaths
in class FileInputFormat
- Parameters:
job
- the job to list input paths for
- Returns:
- array of Path objects
- Throws:
IOException
- if zero items.
getRecordReader
public RecordReader getRecordReader(InputSplit split,
JobConf job,
Reporter reporter)
throws IOException
- Description copied from interface:
InputFormat
- Construct a
RecordReader
for a FileSplit
.
- Specified by:
getRecordReader
in interface InputFormat
- Specified by:
getRecordReader
in class FileInputFormat
- Parameters:
split
- the InputSplit
job
- the job that this split belongs to
- Returns:
- a
RecordReader
- Throws:
IOException
Copyright © 2006 The Apache Software Foundation