@InterfaceAudience.Public
@InterfaceStability.Stable
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. | 
| String[] | getLocations()Get the list of hostnames where the input split is located. | 
long getLength()
               throws IOException
InputSplit.IOExceptionString[] getLocations() throws IOException
InputSplit is
         located as an array of Strings.IOExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.