public class SequenceFileInputFormat<K,V> extends FileInputFormat<K,V>
InputFormat
for SequenceFile
s.Constructor and Description |
---|
SequenceFileInputFormat() |
Modifier and Type | Method and Description |
---|---|
RecordReader<K,V> |
createRecordReader(InputSplit split,
TaskAttemptContext context)
Create a record reader for a given split.
|
protected long |
getFormatMinSplitSize()
Get the lower bound on split size imposed by the format.
|
protected java.util.List<org.apache.hadoop.fs.FileStatus> |
listStatus(JobContext job)
List input directories.
|
addInputPath, addInputPaths, computeSplitSize, getBlockIndex, getInputPathFilter, getInputPaths, getMaxSplitSize, getMinSplitSize, getSplits, isSplitable, setInputPathFilter, setInputPaths, setInputPaths, setMaxInputSplitSize, setMinInputSplitSize
public RecordReader<K,V> createRecordReader(InputSplit split, TaskAttemptContext context) throws java.io.IOException
InputFormat
RecordReader.initialize(InputSplit, TaskAttemptContext)
before
the split is used.createRecordReader
in class InputFormat<K,V>
split
- the split to be readcontext
- the information about the taskjava.io.IOException
protected long getFormatMinSplitSize()
FileInputFormat
getFormatMinSplitSize
in class FileInputFormat<K,V>
protected java.util.List<org.apache.hadoop.fs.FileStatus> listStatus(JobContext job) throws java.io.IOException
FileInputFormat
listStatus
in class FileInputFormat<K,V>
job
- the job to list input paths forjava.io.IOException
- if zero items.Copyright © 2009 The Apache Software Foundation