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 org.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.NullWritable,SummationWritable>

An abstract InputFormat for the jobs


Constructor Summary
DistSum.Machine.AbstractInputFormat()
           
 
Method Summary
 org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.NullWritable,SummationWritable> createRecordReader(org.apache.hadoop.mapreduce.InputSplit generic, org.apache.hadoop.mapreduce.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 org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.NullWritable,SummationWritable> createRecordReader(org.apache.hadoop.mapreduce.InputSplit generic,
                                                                                                                              org.apache.hadoop.mapreduce.TaskAttemptContext context)
Specify how to read the records

Specified by:
createRecordReader in class org.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.NullWritable,SummationWritable>


Copyright © 2012 Apache Software Foundation. All Rights Reserved.