public interface InputSplit
extends org.apache.hadoop.io.Writable
InputSplit represents the data to be processed by an
individual Mapper.
Typically, it presents a byte-oriented view on the input and is the
responsibility of RecordReader of the job to process this and present
a record-oriented view.
InputFormat,
RecordReader| Modifier and Type | Method and Description |
|---|---|
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.
|
long getLength()
throws java.io.IOException
InputSplit.java.io.IOExceptionjava.lang.String[] getLocations()
throws java.io.IOException
InputSplit is
located as an array of Strings.java.io.IOExceptionCopyright © 2009 The Apache Software Foundation