public class SequenceFileInputFormat<K,V> extends FileInputFormat<K,V>
InputFormat
for SequenceFile
s.FileInputFormat.Counter
构造器和说明 |
---|
SequenceFileInputFormat() |
限定符和类型 | 方法和说明 |
---|---|
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 List<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 IOException
InputFormat
RecordReader.initialize(InputSplit, TaskAttemptContext)
before
the split is used.createRecordReader
在类中 InputFormat<K,V>
split
- the split to be readcontext
- the information about the taskIOException
protected long getFormatMinSplitSize()
FileInputFormat
getFormatMinSplitSize
在类中 FileInputFormat<K,V>
protected List<FileStatus> listStatus(JobContext job) throws IOException
FileInputFormat
listStatus
在类中 FileInputFormat<K,V>
job
- the job to list input paths forIOException
- if zero items.Copyright © 2009 The Apache Software Foundation