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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DistSum.MapSide.PartitionInputFormat
public DistSum.MapSide.PartitionInputFormat()
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.