public class FileSplit extends BaseInputSplit
length, locations| Modifier and Type | Method and Description |
|---|---|
long |
length()
Length of the split
|
void |
readFields(DataInput in)
Deserialize the fields of this object from
in. |
void |
write(DataOutput out)
Serialize the fields of this object to
out. |
locationspublic FileSplit(File rootDir)
public long length()
InputSplitlength in interface InputSplitlength in class BaseInputSplitpublic void write(DataOutput out) throws IOException
Writableout.out - DataOuput to serialize this object into.IOExceptionpublic void readFields(DataInput in) throws IOException
Writablein.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
in - DataInput to deseriablize this object from.IOExceptionCopyright © 2015. All rights reserved.