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 IDprotected StringBuilder appendTo(StringBuilder builder)
builder - the builder to append topublic 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 WritablereadFields in class IDin - DataInput to deseriablize this object from.IOExceptionpublic void write(DataOutput out) throws IOException
Writableout.write in interface Writablewrite in class IDout - DataOuput to serialize this object into.IOExceptionpublic 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.