org.apache.hadoop.mapred
Interface InputSplit

All Superinterfaces:
Writable
All Known Implementing Classes:
FileSplit

public interface InputSplit
extends Writable

The description of the data for a single map task.

Author:
Owen O'Malley

Method Summary
 long getLength()
          Get the number of input bytes in the split.
 String[] getLocations()
          Get the list of hostnames where the input split is located.
 
Methods inherited from interface org.apache.hadoop.io.Writable
readFields, write
 

Method Detail

getLength

long getLength()
               throws IOException
Get the number of input bytes in the split.

Returns:
the number of bytes in the input split
Throws:
IOException

getLocations

String[] getLocations()
                      throws IOException
Get the list of hostnames where the input split is located.

Returns:
A list of prefered hostnames
Throws:
IOException


Copyright © 2006 The Apache Software Foundation