@InterfaceAudience.Public @InterfaceStability.Stable public abstract class MultiFileInputFormat<K,V> extends FileInputFormat<K,V>
InputFormat that returns MultiFileSplit's
 in getSplits(JobConf, int) method. Splits are constructed from 
 the files under the input paths. Each split returned contains nearly
 equal content length. getRecordReader(InputSplit, JobConf, Reporter)
 to construct RecordReader's for MultiFileSplit's.MultiFileSplitINPUT_DIR_NONRECURSIVE_IGNORE_SUBDIRS, INPUT_DIR_RECURSIVE, LOG, NUM_INPUT_FILES| Constructor and Description | 
|---|
| MultiFileInputFormat() | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract RecordReader<K,V> | getRecordReader(InputSplit split,
               JobConf job,
               Reporter reporter)Get the  RecordReaderfor the givenInputSplit. | 
| InputSplit[] | getSplits(JobConf job,
         int numSplits)Splits files returned by  FileInputFormat.listStatus(JobConf)when
 they're too big. | 
addInputPath, addInputPathRecursively, addInputPaths, computeSplitSize, getBlockIndex, getInputPathFilter, getInputPaths, getSplitHosts, isSplitable, listStatus, makeSplit, makeSplit, setInputPathFilter, setInputPaths, setInputPaths, setMinSplitSizepublic InputSplit[] getSplits(JobConf job, int numSplits) throws IOException
FileInputFormatFileInputFormat.listStatus(JobConf) when
 they're too big.getSplits in interface InputFormat<K,V>getSplits in class FileInputFormat<K,V>job - job configuration.numSplits - the desired number of splits, a hint.InputSplits for the job.IOExceptionpublic abstract RecordReader<K,V> getRecordReader(InputSplit split, JobConf job, Reporter reporter) throws IOException
InputFormatRecordReader 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 InputSplitjob - the job that this split belongs toRecordReaderIOExceptionCopyright © 2025 Apache Software Foundation. All rights reserved.