public static class JobSplit.SplitMetaInfo extends Object implements Writable
构造器和说明 |
---|
JobSplit.SplitMetaInfo() |
JobSplit.SplitMetaInfo(InputSplit split,
long startOffset) |
JobSplit.SplitMetaInfo(String[] locations,
long startOffset,
long inputDataLength) |
限定符和类型 | 方法和说明 |
---|---|
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
在接口中 Writable
in
- DataInput
to deseriablize this object from.IOException
public void write(DataOutput out) throws IOException
Writable
out
.write
在接口中 Writable
out
- DataOuput
to serialize this object into.IOException
Copyright © 2009 The Apache Software Foundation