Package org.apache.hadoop.mapred
Interface InputSplit
- All Superinterfaces:
Writable
- All Known Subinterfaces:
InputSplitWithLocationInfo
- All Known Implementing Classes:
CombineFileSplit,CompositeInputSplit,FileSplit,MultiFileSplit
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.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionlongGet the total number of bytes in the data of theInputSplit.String[]Get the list of hostnames where the input split is located.Methods inherited from interface org.apache.hadoop.io.Writable
readFields, write
-
Method Details
-
getLength
Get the total number of bytes in the data of theInputSplit.- Returns:
- the number of bytes in the input split.
- Throws:
IOException
-
getLocations
Get the list of hostnames where the input split is located.- Returns:
- list of hostnames where data of the
InputSplitis located as an array ofStrings. - Throws:
IOException
-