public class SequenceFileInputFormat<K,V> extends FileInputFormat<K,V>
InputFormat for SequenceFiles.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, setMinInputSplitSizepublic RecordReader<K,V> createRecordReader(InputSplit split, TaskAttemptContext context) throws IOException
InputFormatRecordReader.initialize(InputSplit, TaskAttemptContext) before
the split is used.createRecordReader 在类中 InputFormat<K,V>split - the split to be readcontext - the information about the taskIOExceptionprotected long getFormatMinSplitSize()
FileInputFormatgetFormatMinSplitSize 在类中 FileInputFormat<K,V>protected List<FileStatus> listStatus(JobContext job) throws IOException
FileInputFormatlistStatus 在类中 FileInputFormat<K,V>job - the job to list input paths forIOException - if zero items.Copyright © 2009 The Apache Software Foundation