public class AvroUtf8InputFormat extends FileInputFormat<AvroWrapper<Utf8>,NullWritable> implements JobConfigurable
InputFormat for text files. Each line is
a Utf8 key; values are null.FileInputFormat.CounterINPUT_DIR_NONRECURSIVE_IGNORE_SUBDIRS, 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, setMinSplitSizepublic void configure(JobConf conf)
configure in interface JobConfigurableprotected 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>IOExceptionCopyright © 2009–2023 The Apache Software Foundation. All rights reserved.