@InterfaceAudience.Public @InterfaceStability.Stable public interface InputSplit extends 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.
|
readFields, write
long getLength() throws IOException
InputSplit
.IOException
String[] getLocations() throws IOException
InputSplit
is
located as an array of String
s.IOException
Copyright © 2024 Apache Software Foundation. All rights reserved.