public static class JobSplit.SplitMetaInfo extends Object implements Writable
Constructor and Description |
---|
JobSplit.SplitMetaInfo() |
JobSplit.SplitMetaInfo(InputSplit split,
long startOffset) |
JobSplit.SplitMetaInfo(String[] locations,
long startOffset,
long inputDataLength) |
Modifier and Type | Method and Description |
---|---|
long |
getInputDataLength() |
String[] |
getLocations() |
long |
getStartOffset() |
void |
readFields(DataInput in)
Deserialize the fields of this object from
in . |
void |
setInputDataLength(long length) |
void |
setInputDataLocations(String[] locations) |
String |
toString() |
void |
write(DataOutput out)
Serialize the fields of this object to
out . |
public JobSplit.SplitMetaInfo()
public JobSplit.SplitMetaInfo(String[] locations, long startOffset, long inputDataLength)
public JobSplit.SplitMetaInfo(InputSplit split, long startOffset) throws IOException
IOException
public String[] getLocations()
public long getStartOffset()
public long getInputDataLength()
public void setInputDataLocations(String[] locations)
public void setInputDataLength(long length)
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 void write(DataOutput out) throws IOException
Writable
out
.write
in interface Writable
out
- DataOuput
to serialize this object into.IOException
Copyright © 2013 Apache Software Foundation. All rights reserved.