org.apache.hadoop.examples.pi
Class DistSum.Machine.SummationSplit
java.lang.Object
org.apache.hadoop.mapreduce.InputSplit
org.apache.hadoop.examples.pi.DistSum.Machine.SummationSplit
- All Implemented Interfaces:
- Container<Summation>, org.apache.hadoop.io.Writable
- Enclosing class:
- DistSum.Machine
public static final class DistSum.Machine.SummationSplit
- extends org.apache.hadoop.mapreduce.InputSplit
- implements org.apache.hadoop.io.Writable, Container<Summation>
Split for the summations
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DistSum.Machine.SummationSplit
public DistSum.Machine.SummationSplit()
getElement
public Summation getElement()
-
- Specified by:
getElement in interface Container<Summation>
- Returns:
- The contained element.
getLength
public long getLength()
-
- Specified by:
getLength in class org.apache.hadoop.mapreduce.InputSplit
getLocations
public String[] getLocations()
-
- Specified by:
getLocations in class org.apache.hadoop.mapreduce.InputSplit
readFields
public void readFields(DataInput in)
throws IOException
-
- Specified by:
readFields in interface org.apache.hadoop.io.Writable
- Throws:
IOException
write
public void write(DataOutput out)
throws IOException
-
- Specified by:
write in interface org.apache.hadoop.io.Writable
- Throws:
IOException
Copyright © 2012 Apache Software Foundation. All Rights Reserved.