public class WrappedJvmID extends ID
Constructor and Description |
---|
WrappedJvmID(JobID jobID,
boolean mapTask,
int nextInt) |
Modifier and Type | Method and Description |
---|---|
protected StringBuilder |
appendTo(StringBuilder builder)
Add the unique id to the given StringBuilder.
|
int |
compareTo(ID o)
Compare TaskInProgressIds by first jobIds, then by tip numbers.
|
boolean |
equals(Object o) |
static org.apache.hadoop.mapred.JVMId |
forName(String str)
Construct a JVMId object from given string
|
JobID |
getJobId() |
int |
hashCode() |
boolean |
isMapJVM() |
void |
readFields(DataInput in)
Deserialize the fields of this object from
in . |
String |
toString() |
void |
write(DataOutput out)
Serialize the fields of this object to
out . |
public WrappedJvmID(JobID jobID, boolean mapTask, int nextInt)
public boolean isMapJVM()
public JobID getJobId()
public int compareTo(ID o)
compareTo
in interface Comparable<ID>
compareTo
in class ID
protected StringBuilder appendTo(StringBuilder builder)
builder
- the builder to append topublic 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
readFields
in class ID
in
- DataInput
to deseriablize this object from.IOException
public void write(DataOutput out) throws IOException
Writable
out
.write
in interface Writable
write
in class ID
out
- DataOuput
to serialize this object into.IOException
public static org.apache.hadoop.mapred.JVMId forName(String str) throws IllegalArgumentException
IllegalArgumentException
- if the given string is malformedCopyright © 2013 Apache Software Foundation. All rights reserved.