org.apache.hadoop.examples.pi
Class DistSum.Machine.AbstractInputFormat
java.lang.Object
org.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.NullWritable,SummationWritable>
org.apache.hadoop.examples.pi.DistSum.Machine.AbstractInputFormat
- Direct Known Subclasses:
- DistSum.MapSide.PartitionInputFormat, DistSum.ReduceSide.SummationInputFormat
- Enclosing class:
- DistSum.Machine
public abstract static class DistSum.Machine.AbstractInputFormat
- extends InputFormat<org.apache.hadoop.io.NullWritable,SummationWritable>
An abstract InputFormat for the jobs
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DistSum.Machine.AbstractInputFormat
public DistSum.Machine.AbstractInputFormat()
createRecordReader
public final RecordReader<org.apache.hadoop.io.NullWritable,SummationWritable> createRecordReader(InputSplit generic,
TaskAttemptContext context)
- Specify how to read the records
- Specified by:
createRecordReader
in class InputFormat<org.apache.hadoop.io.NullWritable,SummationWritable>
- Parameters:
generic
- the split to be readcontext
- the information about the task
- Returns:
- a new record reader
Copyright © 2009 The Apache Software Foundation