org.apache.hadoop.mapred
Class SequenceFileInputFormat
java.lang.Object
org.apache.hadoop.mapred.InputFormatBase
org.apache.hadoop.mapred.SequenceFileInputFormat
- All Implemented Interfaces:
- InputFormat
public class SequenceFileInputFormat
- extends InputFormatBase
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()
listFiles
protected File[] listFiles(FileSystem fs,
JobConf job)
throws IOException
- Description copied from class:
InputFormatBase
- List input directories.
Subclasses may override to, e.g., select only files matching a regular
expression.
Property mapred.input.subdir, if set, names a subdirectory that
is appended to all input dirs specified by job, and if the given fs
lists those too, each is added to the returned array of File.
- Overrides:
listFiles
in class InputFormatBase
- Returns:
- array of File objects, never zero length.
- Throws:
IOException
- if zero items.
getRecordReader
public RecordReader getRecordReader(FileSystem fs,
FileSplit 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 InputFormatBase
- Parameters:
fs
- the FileSystem
split
- the FileSplit
job
- the job that this split belongs to
- Returns:
- a
RecordReader
- Throws:
IOException
Copyright © 2006 The Apache Software Foundation