org.apache.hadoop.examples.pi
Class DistSum.MapSide.PartitionInputFormat
java.lang.Object
org.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.NullWritable,SummationWritable>
org.apache.hadoop.examples.pi.DistSum.Machine.AbstractInputFormat
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DistSum.MapSide.PartitionInputFormat
public DistSum.MapSide.PartitionInputFormat()
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
InputSplit
s for the job.
Copyright © 2009 The Apache Software Foundation