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<org.apache.hadoop.mapreduce.InputSplit> getSplits(org.apache.hadoop.mapreduce.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<org.apache.hadoop.mapreduce.InputSplit> getSplits(org.apache.hadoop.mapreduce.JobContext context)
Partitions the summation into parts and then return them as splits

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


Copyright © 2014 Apache Software Foundation. All Rights Reserved.