@InterfaceAudience.Public @InterfaceStability.Stable public class SequenceFileInputFormat<K,V> extends FileInputFormat<K,V>
InputFormat
for SequenceFile
s.INPUT_DIR_RECURSIVE, LOG, NUM_INPUT_FILES
Constructor and Description |
---|
SequenceFileInputFormat() |
Modifier and Type | Method and Description |
---|---|
RecordReader<K,V> |
getRecordReader(InputSplit split,
JobConf job,
Reporter reporter)
Get the
RecordReader for the given InputSplit . |
protected FileStatus[] |
listStatus(JobConf job)
List input directories.
|
addInputPath, addInputPathRecursively, addInputPaths, computeSplitSize, getBlockIndex, getInputPathFilter, getInputPaths, getSplitHosts, getSplits, isSplitable, makeSplit, makeSplit, setInputPathFilter, setInputPaths, setInputPaths, setMinSplitSize
public SequenceFileInputFormat()
protected FileStatus[] listStatus(JobConf job) throws IOException
FileInputFormat
listStatus
in class FileInputFormat<K,V>
job
- the job to list input paths forIOException
- if zero items.public RecordReader<K,V> getRecordReader(InputSplit split, JobConf job, Reporter reporter) throws IOException
InputFormat
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.
getRecordReader
in interface InputFormat<K,V>
getRecordReader
in class FileInputFormat<K,V>
split
- the InputSplit
job
- the job that this split belongs toRecordReader
IOException
Copyright © 2018 Apache Software Foundation. All rights reserved.