|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.mapred.FileSplit
public class FileSplit
A section of an input file. Returned by InputFormat.getSplits(FileSystem, JobConf, int)
and passed to
InputFormat#getRecordReader(FileSystem,FileSplit,JobConf,Reporter).
Constructor Summary | |
---|---|
FileSplit(File file,
long start,
long length)
Constructs a split. |
Method Summary | |
---|---|
File |
getFile()
The file containing this split's data. |
long |
getLength()
The number of bytes in the file to process. |
long |
getStart()
The position of the first byte in the file to process. |
void |
readFields(DataInput in)
Reads the fields of this object from in . |
String |
toString()
|
void |
write(DataOutput out)
Writes the fields of this object to out . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FileSplit(File file, long start, long length)
file
- the file namestart
- the position of the first byte in the file to processlength
- the number of bytes in the file to processMethod Detail |
---|
public File getFile()
public long getStart()
public long getLength()
public String toString()
toString
in class Object
public void write(DataOutput out) throws IOException
Writable
out
.
write
in interface Writable
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
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |