org.apache.avro.mapred
Class AvroInputFormat<T>

java.lang.Object
  extended by org.apache.hadoop.mapred.FileInputFormat<AvroWrapper<T>,NullWritable>
      extended by 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


Field Summary
 
Fields inherited from class org.apache.hadoop.mapred.FileInputFormat
LOG
 
Constructor Summary
AvroInputFormat()
           
 
Method Summary
 RecordReader<AvroWrapper<T>,NullWritable> getRecordReader(InputSplit split, JobConf job, Reporter reporter)
           
protected  FileStatus[] listStatus(JobConf job)
           
 
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
 

Constructor Detail

AvroInputFormat

public AvroInputFormat()
Method Detail

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.