public class AutoInputFormat extends FileInputFormat
InputFormat that tries to deduce the types of the input files
automatically. It can currently handle text and sequence files.FileInputFormat.CounterLOG| 构造器和说明 |
|---|
AutoInputFormat() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
configure(JobConf job) |
RecordReader |
getRecordReader(InputSplit split,
JobConf job,
Reporter reporter)
Get the
RecordReader for the given InputSplit. |
addInputPath, addInputPaths, computeSplitSize, getBlockIndex, getInputPathFilter, getInputPaths, getSplitHosts, getSplits, isSplitable, listStatus, setInputPathFilter, setInputPaths, setInputPaths, setMinSplitSizepublic void configure(JobConf job)
public RecordReader 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 在接口中 InputFormatgetRecordReader 在类中 FileInputFormatsplit - the InputSplitjob - the job that this split belongs toRecordReaderIOExceptionCopyright © 2009 The Apache Software Foundation