|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.nutch.mapReduce.FileSplit
A section of an input file.
Returned by InputFormat.getSplits(NutchFileSystem, JobConf, int)
and passed to
InputFormat.getRecordReader(NutchFileSystem, FileSplit, JobConf).
| 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. |
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, toString, 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 process| Method Detail |
public File getFile()
public long getStart()
public long getLength()
public void write(DataOutput out)
throws IOException
Writableout.
write in interface WritableIOException
public void readFields(DataInput in)
throws IOException
Writablein. For efficiency,
implementations should attempt to re-use storage in the existing object
where possible.
readFields in interface WritableIOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||