org.apache.hadoop.examples.pi
Class DistSum.MapSide.PartitionInputFormat

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
          extended by org.apache.hadoop.examples.pi.DistSum.MapSide.PartitionInputFormat
Enclosing class:
DistSum.MapSide

public static class DistSum.MapSide.PartitionInputFormat
extends DistSum.Machine.AbstractInputFormat

An InputFormat which partitions a summation


Constructor Summary
DistSum.MapSide.PartitionInputFormat()
           
 
Method Summary
 List<InputSplit> getSplits(JobContext context)
          Partitions the summation into parts and then return them as splits
 
Methods inherited from class org.apache.hadoop.examples.pi.DistSum.Machine.AbstractInputFormat
createRecordReader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DistSum.MapSide.PartitionInputFormat

public DistSum.MapSide.PartitionInputFormat()
Method Detail

getSplits

public List<InputSplit> getSplits(JobContext context)
Partitions the summation into parts and then return them as splits

Specified by:
getSplits in class InputFormat<org.apache.hadoop.io.NullWritable,SummationWritable>
Parameters:
context - job configuration.
Returns:
an array of InputSplits for the job.


Copyright © 2009 The Apache Software Foundation