org.apache.hadoop.examples.pi
Class DistSum.Machine.SummationSplit

java.lang.Object
  extended by org.apache.hadoop.mapreduce.InputSplit
      extended by 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


Constructor Summary
DistSum.Machine.SummationSplit()
           
 
Method Summary
 Summation getElement()
          
 long getLength()
          
 String[] getLocations()
          
 void readFields(DataInput in)
          
 void write(DataOutput out)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DistSum.Machine.SummationSplit

public DistSum.Machine.SummationSplit()
Method Detail

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.