public abstract class InputSplit
extends java.lang.Object
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
Constructor and Description |
---|
InputSplit() |
Modifier and Type | Method and Description |
---|---|
abstract long |
getLength()
Get the size of the split, so that the input splits can be sorted by size.
|
abstract java.lang.String[] |
getLocations()
Get the list of nodes by name where the data for the split would be local.
|
public abstract long getLength() throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public abstract java.lang.String[] getLocations() throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
Copyright © 2009 The Apache Software Foundation