public class AvroUtf8InputFormat extends FileInputFormat<AvroWrapper<Utf8>,NullWritable> implements JobConfigurable
InputFormat
for text files.
Each line is a Utf8
key; values are null.FileInputFormat.Counter
INPUT_DIR_RECURSIVE, LOG, NUM_INPUT_FILES
Constructor and Description |
---|
AvroUtf8InputFormat() |
Modifier and Type | Method and Description |
---|---|
void |
configure(JobConf conf) |
RecordReader<AvroWrapper<Utf8>,NullWritable> |
getRecordReader(InputSplit split,
JobConf job,
Reporter reporter) |
protected boolean |
isSplitable(FileSystem fs,
Path file) |
addInputPath, addInputPathRecursively, addInputPaths, computeSplitSize, getBlockIndex, getInputPathFilter, getInputPaths, getSplitHosts, getSplits, listStatus, makeSplit, makeSplit, setInputPathFilter, setInputPaths, setInputPaths, setMinSplitSize
public void configure(JobConf conf)
configure
in interface JobConfigurable
protected boolean isSplitable(FileSystem fs, Path file)
isSplitable
in class FileInputFormat<AvroWrapper<Utf8>,NullWritable>
public RecordReader<AvroWrapper<Utf8>,NullWritable> getRecordReader(InputSplit split, JobConf job, Reporter reporter) throws IOException
getRecordReader
in interface InputFormat<AvroWrapper<Utf8>,NullWritable>
getRecordReader
in class FileInputFormat<AvroWrapper<Utf8>,NullWritable>
IOException
Copyright © 2009–2016 The Apache Software Foundation. All rights reserved.