org.apache.hadoop.examples.pi
Class DistSum.Machine.AbstractInputFormat

java.lang.Object
  extended by org.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.NullWritable,SummationWritable>
      extended by org.apache.hadoop.examples.pi.DistSum.Machine.AbstractInputFormat
Direct Known Subclasses:
DistSum.MapSide.PartitionInputFormat, DistSum.ReduceSide.SummationInputFormat
Enclosing class:
DistSum.Machine

public abstract static class DistSum.Machine.AbstractInputFormat
extends InputFormat<org.apache.hadoop.io.NullWritable,SummationWritable>

An abstract InputFormat for the jobs


Constructor Summary
DistSum.Machine.AbstractInputFormat()
           
 
Method Summary
 RecordReader<org.apache.hadoop.io.NullWritable,SummationWritable> createRecordReader(InputSplit generic, TaskAttemptContext context)
          Specify how to read the records
 
Methods inherited from class org.apache.hadoop.mapreduce.InputFormat
getSplits
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DistSum.Machine.AbstractInputFormat

public DistSum.Machine.AbstractInputFormat()
Method Detail

createRecordReader

public final RecordReader<org.apache.hadoop.io.NullWritable,SummationWritable> createRecordReader(InputSplit generic,
                                                                                                  TaskAttemptContext context)
Specify how to read the records

Specified by:
createRecordReader in class InputFormat<org.apache.hadoop.io.NullWritable,SummationWritable>
Parameters:
generic - the split to be read
context - the information about the task
Returns:
a new record reader


Copyright © 2009 The Apache Software Foundation