org.apache.hadoop.examples.pi
Class DistSum.ReduceSide.SummationInputFormat
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.ReduceSide.SummationInputFormat
- Enclosing class:
- DistSum.ReduceSide
public static class DistSum.ReduceSide.SummationInputFormat
- extends DistSum.Machine.AbstractInputFormat
An InputFormat which returns a single summation.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DistSum.ReduceSide.SummationInputFormat
public DistSum.ReduceSide.SummationInputFormat()
getSplits
public List<InputSplit> getSplits(JobContext context)
- Description copied from class:
InputFormat
- Logically split the set of input files for the job.
Each InputSplit
is then assigned to an individual Mapper
for processing.
Note: The split is a logical split of the inputs and the
input files are not physically split into chunks. For e.g. a split could
be <input-file-path, start, offset> tuple. The InputFormat
also creates the RecordReader
to read the InputSplit
.
- Specified by:
getSplits
in class InputFormat<org.apache.hadoop.io.NullWritable,SummationWritable>
- Parameters:
context
- job configuration.
- Returns:
- a list containing a single split of summation
Copyright © 2009 The Apache Software Foundation