public class AvroInputFormat<T> extends org.apache.hadoop.mapred.FileInputFormat<AvroWrapper<T>,org.apache.hadoop.io.NullWritable>
InputFormat for Avro data files.
 By default, when pointed at a directory, this will silently skip over any
 files in it that do not have .avro extension. To instead include all files,
 set the avro.mapred.ignore.inputs.without.extension property to false.| Modifier and Type | Field and Description | 
|---|---|
static String | 
IGNORE_FILES_WITHOUT_EXTENSION_KEY
Whether to silently ignore input files without the .avro extension 
 | 
static boolean | 
IGNORE_INPUTS_WITHOUT_EXTENSION_DEFAULT
Default of whether to silently ignore input files without the .avro
 extension. 
 | 
| Constructor and Description | 
|---|
AvroInputFormat()  | 
| Modifier and Type | Method and Description | 
|---|---|
org.apache.hadoop.mapred.RecordReader<AvroWrapper<T>,org.apache.hadoop.io.NullWritable> | 
getRecordReader(org.apache.hadoop.mapred.InputSplit split,
               org.apache.hadoop.mapred.JobConf job,
               org.apache.hadoop.mapred.Reporter reporter)  | 
protected org.apache.hadoop.fs.FileStatus[] | 
listStatus(org.apache.hadoop.mapred.JobConf job)  | 
addInputPath, addInputPathRecursively, addInputPaths, computeSplitSize, getBlockIndex, getInputPathFilter, getInputPaths, getSplitHosts, getSplits, isSplitable, makeSplit, makeSplit, setInputPathFilter, setInputPaths, setInputPaths, setMinSplitSizepublic static final String IGNORE_FILES_WITHOUT_EXTENSION_KEY
public static final boolean IGNORE_INPUTS_WITHOUT_EXTENSION_DEFAULT
protected org.apache.hadoop.fs.FileStatus[] listStatus(org.apache.hadoop.mapred.JobConf job)
                                                throws IOException
listStatus in class org.apache.hadoop.mapred.FileInputFormat<AvroWrapper<T>,org.apache.hadoop.io.NullWritable>IOExceptionpublic org.apache.hadoop.mapred.RecordReader<AvroWrapper<T>,org.apache.hadoop.io.NullWritable> getRecordReader(org.apache.hadoop.mapred.InputSplit split, org.apache.hadoop.mapred.JobConf job, org.apache.hadoop.mapred.Reporter reporter) throws IOException
getRecordReader in interface org.apache.hadoop.mapred.InputFormat<AvroWrapper<T>,org.apache.hadoop.io.NullWritable>getRecordReader in class org.apache.hadoop.mapred.FileInputFormat<AvroWrapper<T>,org.apache.hadoop.io.NullWritable>IOExceptionCopyright © 2009–2021 The Apache Software Foundation. All rights reserved.