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.Counter
INPUT_DIR_RECURSIVE, LOG, NUM_INPUT_FILES
Constructor and Description |
---|
AutoInputFormat() |
Modifier and Type | Method and Description |
---|---|
void |
configure(JobConf job) |
RecordReader |
getRecordReader(InputSplit split,
JobConf job,
Reporter reporter)
Get the
RecordReader for the given InputSplit . |
addInputPath, addInputPathRecursively, addInputPaths, computeSplitSize, getBlockIndex, getInputPathFilter, getInputPaths, getSplitHosts, getSplits, isSplitable, listStatus, makeSplit, setInputPathFilter, setInputPaths, setInputPaths, setMinSplitSize
public void configure(JobConf job)
public RecordReader getRecordReader(InputSplit split, JobConf job, Reporter reporter) throws IOException
InputFormat
RecordReader
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
getRecordReader
in class FileInputFormat
split
- the InputSplit
job
- the job that this split belongs toRecordReader
IOException
Copyright © 2013 Apache Software Foundation. All rights reserved.