org.apache.hadoop.examples
Class BaileyBorweinPlouffe.BbpSplit

java.lang.Object
  extended by org.apache.hadoop.mapreduce.InputSplit
      extended by org.apache.hadoop.examples.BaileyBorweinPlouffe.BbpSplit
All Implemented Interfaces:
org.apache.hadoop.io.Writable
Enclosing class:
BaileyBorweinPlouffe

public static class BaileyBorweinPlouffe.BbpSplit
extends InputSplit
implements org.apache.hadoop.io.Writable

Input split for the BaileyBorweinPlouffe.BbpInputFormat.


Constructor Summary
BaileyBorweinPlouffe.BbpSplit()
          Public default constructor for the Writable interface.
 
Method Summary
 long getLength()
          Get the size of the split, so that the input splits can be sorted by size.
 String[] getLocations()
          No location is needed.
 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

BaileyBorweinPlouffe.BbpSplit

public BaileyBorweinPlouffe.BbpSplit()
Public default constructor for the Writable interface.

Method Detail

getLength

public long getLength()
Get the size of the split, so that the input splits can be sorted by size.

Specified by:
getLength in class InputSplit
Returns:
the number of bytes in the split

getLocations

public String[] getLocations()
No location is needed.

Specified by:
getLocations in class InputSplit
Returns:
a new array of the node nodes.

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 © 2009 The Apache Software Foundation