@InterfaceAudience.Public @InterfaceStability.Stable public class TezTaskAttemptID extends TezID
TezTaskID, that this TaskAttemptID belongs to.
Second part is the task attempt number.
Applications should never construct or parse TaskAttemptID strings
, but rather use appropriate constructors or Class.forName(String)
method.
TezTaskIDTezID.TezIDCache<T>| Constructor and Description |
|---|
TezTaskAttemptID() |
| Modifier and Type | Method and Description |
|---|---|
protected StringBuilder |
appendTo(StringBuilder builder)
Add the unique string to the StringBuilder
|
static void |
clearCache() |
int |
compareTo(TezID o)
Compare TaskIds by first tipIds, then by task numbers.
|
boolean |
equals(Object o) |
static TezTaskAttemptID |
fromString(String taIdStr) |
static TezTaskAttemptID |
getInstance(TezTaskID taskID,
int id)
Constructs a TaskAttemptID object from given
TezTaskID. |
TezTaskID |
getTaskID()
Returns the
TezTaskID object that this task attempt belongs to |
int |
hashCode() |
void |
readFields(DataInput in) |
static TezTaskAttemptID |
readTezTaskAttemptID(DataInput in) |
String |
toString() |
void |
write(DataOutput out) |
public static final String ATTEMPT
public static TezTaskAttemptID getInstance(TezTaskID taskID, int id)
TezTaskID.taskID - TaskID that this task belongs toid - the task attempt number@InterfaceAudience.Private public static void clearCache()
public TezTaskID getTaskID()
TezTaskID object that this task attempt belongs toprotected StringBuilder appendTo(StringBuilder builder)
builder - the builder to append otpublic int compareTo(TezID o)
compareTo in interface Comparable<TezID>compareTo in class TezIDpublic void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritablereadFields in class TezIDIOExceptionpublic static TezTaskAttemptID readTezTaskAttemptID(DataInput in) throws IOException
IOExceptionpublic void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.Writablewrite in class TezIDIOExceptionpublic static TezTaskAttemptID fromString(String taIdStr)
Copyright © 2019 Apache Software Foundation. All rights reserved.