org.apache.hadoop.examples
Class SleepJob.EmptySplit

java.lang.Object
  extended by org.apache.hadoop.examples.SleepJob.EmptySplit
All Implemented Interfaces:
org.apache.hadoop.io.Writable, InputSplit
Enclosing class:
SleepJob

public static class SleepJob.EmptySplit
extends java.lang.Object
implements InputSplit


Constructor Summary
SleepJob.EmptySplit()
           
 
Method Summary
 long getLength()
          Get the total number of bytes in the data of the InputSplit.
 java.lang.String[] getLocations()
          Get the list of hostnames where the input split is located.
 void readFields(java.io.DataInput in)
           
 void write(java.io.DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SleepJob.EmptySplit

public SleepJob.EmptySplit()
Method Detail

write

public void write(java.io.DataOutput out)
           throws java.io.IOException
Specified by:
write in interface org.apache.hadoop.io.Writable
Throws:
java.io.IOException

readFields

public void readFields(java.io.DataInput in)
                throws java.io.IOException
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Throws:
java.io.IOException

getLength

public long getLength()
Description copied from interface: InputSplit
Get the total number of bytes in the data of the InputSplit.

Specified by:
getLength in interface InputSplit
Returns:
the number of bytes in the input split.

getLocations

public java.lang.String[] getLocations()
Description copied from interface: InputSplit
Get the list of hostnames where the input split is located.

Specified by:
getLocations in interface InputSplit
Returns:
list of hostnames where data of the InputSplit is located as an array of Strings.


Copyright © 2009 The Apache Software Foundation