@InterfaceAudience.Public @InterfaceStability.Stable public class SequenceFileInputFormat<K,V> extends FileInputFormat<K,V>
InputFormat for SequenceFiles.DEFAULT_LIST_STATUS_NUM_THREADS, INPUT_DIR, INPUT_DIR_NONRECURSIVE_IGNORE_SUBDIRS, INPUT_DIR_RECURSIVE, LIST_STATUS_NUM_THREADS, NUM_INPUT_FILES, PATHFILTER_CLASS, SPLIT_MAXSIZE, SPLIT_MINSIZE| 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 List<FileStatus> |
listStatus(JobContext job)
List input directories.
|
addInputPath, addInputPathRecursively, addInputPaths, computeSplitSize, getBlockIndex, getInputDirRecursive, getInputPathFilter, getInputPaths, getMaxSplitSize, getMinSplitSize, getSplits, isSplitable, makeSplit, makeSplit, setInputDirRecursive, 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 in class InputFormat<K,V>split - the split to be readcontext - the information about the taskIOExceptionprotected long getFormatMinSplitSize()
FileInputFormatgetFormatMinSplitSize in class FileInputFormat<K,V>protected List<FileStatus> listStatus(JobContext job) throws IOException
FileInputFormatlistStatus in class FileInputFormat<K,V>job - the job to list input paths forIOException - if zero items.Copyright © 2022 Apache Software Foundation. All rights reserved.