java.lang.Object org.apache.hadoop.mapreduce.InputSplit org.apache.hadoop.mapred.FileSplit
public class FileSplit
A section of an input file. Returned by InputFormat.getSplits(JobConf, int)
and passed to InputFormat.getRecordReader(InputSplit,JobConf,Reporter)
.
@Deprecated public FileSplit(Path file, long start, long length, JobConf conf)
file
- the file name
start
- the position of the first byte in the file to process
length
- the number of bytes in the file to process
public FileSplit(Path file, long start, long length, String[] hosts)
file
- the file name
start
- the position of the first byte in the file to process
length
- the number of bytes in the file to process
hosts
- the list of hosts containing the block, possibly null
public Path getPath()
public long getStart()
public long getLength()
getLength
in interface InputSplit
getLength
in class InputSplit
public String toString()
toString
in class Object
public void write(DataOutput out) throws IOException
Writable
out
.
write
in interface Writable
out
- DataOuput
to serialize this object into.
IOException
public void readFields(DataInput in) throws IOException
Writable
in
.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields
in interface Writable
in
- DataInput
to deseriablize this object from.
IOException
public String[] getLocations() throws IOException
InputSplit
getLocations
in interface InputSplit
getLocations
in class InputSplit
IOException
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4