public abstract class InputSplit extends 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| Constructor and Description |
|---|
InputSplit() |
| Modifier and Type | Method and Description |
|---|---|
abstract long |
getLength()
Get the total number of bytes in the data of the
InputSplit. |
abstract String[] |
getLocations()
Get the list of hostnames where the input split is located.
|
public abstract long getLength()
throws IOException
InputSplit.IOExceptionpublic abstract String[] getLocations() throws IOException
InputSplit is
located as an array of Strings.IOExceptionCopyright © 2023 Alibaba Cloud Computing. All rights reserved.