org.apache.avro.mapred
Class AvroUtf8InputFormat

java.lang.Object
  extended by org.apache.hadoop.mapred.FileInputFormat<AvroWrapper<Utf8>,NullWritable>
      extended by org.apache.avro.mapred.AvroUtf8InputFormat
All Implemented Interfaces:
org.apache.hadoop.mapred.InputFormat<AvroWrapper<Utf8>,NullWritable>, org.apache.hadoop.mapred.JobConfigurable

public class AvroUtf8InputFormat
extends org.apache.hadoop.mapred.FileInputFormat<AvroWrapper<Utf8>,NullWritable>
implements org.apache.hadoop.mapred.JobConfigurable

An InputFormat for text files. Each line is a Utf8 key; values are null.


Field Summary
 
Fields inherited from class org.apache.hadoop.mapred.FileInputFormat
LOG
 
Constructor Summary
AvroUtf8InputFormat()
           
 
Method Summary
 void configure(org.apache.hadoop.mapred.JobConf conf)
           
 org.apache.hadoop.mapred.RecordReader<AvroWrapper<Utf8>,NullWritable> getRecordReader(org.apache.hadoop.mapred.InputSplit split, org.apache.hadoop.mapred.JobConf job, org.apache.hadoop.mapred.Reporter reporter)
           
protected  boolean isSplitable(FileSystem fs, Path file)
           
 
Methods inherited from class org.apache.hadoop.mapred.FileInputFormat
addInputPath, addInputPaths, computeSplitSize, getBlockIndex, getInputPathFilter, getInputPaths, getSplitHosts, getSplits, listStatus, setInputPathFilter, setInputPaths, setInputPaths, setMinSplitSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvroUtf8InputFormat

public AvroUtf8InputFormat()
Method Detail

configure

public void configure(org.apache.hadoop.mapred.JobConf conf)
Specified by:
configure in interface org.apache.hadoop.mapred.JobConfigurable

isSplitable

protected boolean isSplitable(FileSystem fs,
                              Path file)
Overrides:
isSplitable in class org.apache.hadoop.mapred.FileInputFormat<AvroWrapper<Utf8>,NullWritable>

getRecordReader

public org.apache.hadoop.mapred.RecordReader<AvroWrapper<Utf8>,NullWritable> getRecordReader(org.apache.hadoop.mapred.InputSplit split,
                                                                                             org.apache.hadoop.mapred.JobConf job,
                                                                                             org.apache.hadoop.mapred.Reporter reporter)
                                                                                      throws IOException
Specified by:
getRecordReader in interface org.apache.hadoop.mapred.InputFormat<AvroWrapper<Utf8>,NullWritable>
Specified by:
getRecordReader in class org.apache.hadoop.mapred.FileInputFormat<AvroWrapper<Utf8>,NullWritable>
Throws:
IOException


Copyright © 2010 The Apache Software Foundation