org.apache.hadoop.examples.pi
Class DistSum.ReduceSide.SummationInputFormat

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.ReduceSide.SummationInputFormat
Enclosing class:
DistSum.ReduceSide

public static class DistSum.ReduceSide.SummationInputFormat
extends DistSum.Machine.AbstractInputFormat

An InputFormat which returns a single summation.


Constructor Summary
DistSum.ReduceSide.SummationInputFormat()
           
 
Method Summary
 List<InputSplit> getSplits(JobContext context)
          Logically split the set of input files for the job.
 
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.ReduceSide.SummationInputFormat

public DistSum.ReduceSide.SummationInputFormat()
Method Detail

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