org.apache.avro.mapred
Class AvroInputFormat<T>
java.lang.Object
org.apache.hadoop.mapred.FileInputFormat<AvroWrapper<T>,NullWritable>
org.apache.avro.mapred.AvroInputFormat<T>
- All Implemented Interfaces:
- InputFormat<AvroWrapper<T>,NullWritable>
public class AvroInputFormat<T>
- extends FileInputFormat<AvroWrapper<T>,NullWritable>
An InputFormat
for Avro data files
Methods inherited from class org.apache.hadoop.mapred.FileInputFormat |
addInputPath, addInputPaths, computeSplitSize, getBlockIndex, getInputPathFilter, getInputPaths, getSplitHosts, getSplits, isSplitable, setInputPathFilter, setInputPaths, setInputPaths, setMinSplitSize |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AvroInputFormat
public AvroInputFormat()
listStatus
protected FileStatus[] listStatus(JobConf job)
throws IOException
- Overrides:
listStatus
in class FileInputFormat<AvroWrapper<T>,NullWritable>
- Throws:
IOException
getRecordReader
public RecordReader<AvroWrapper<T>,NullWritable> getRecordReader(InputSplit split,
JobConf job,
Reporter reporter)
throws IOException
- Specified by:
getRecordReader
in interface InputFormat<AvroWrapper<T>,NullWritable>
- Specified by:
getRecordReader
in class FileInputFormat<AvroWrapper<T>,NullWritable>
- Throws:
IOException
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.