|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tez.dag.records.TezID
org.apache.tez.dag.records.TezDAGID
public class TezDAGID
TezDAGID represents the immutable and unique identifier for
a Tez DAG.
TezDAGID consists of 2 parts. The first part is the ApplicationId,
that is the YARN Application ID that this DAG belongs to. The second part is
the DAG number.
ApplicationId| Field Summary | |
|---|---|
static String |
DAG
|
| Fields inherited from class org.apache.tez.dag.records.TezID |
|---|
id, SEPARATOR |
| Constructor Summary | |
|---|---|
TezDAGID()
|
|
| Method Summary | |
|---|---|
protected StringBuilder |
appendTo(StringBuilder builder)
Add the unique string to the given builder. |
int |
compareTo(TezID o)
Compare TaskInProgressIds by first jobIds, then by tip numbers and type. |
boolean |
equals(Object o)
|
static TezDAGID |
fromString(String dagId)
|
org.apache.hadoop.yarn.api.records.ApplicationId |
getApplicationId()
Returns the ApplicationId object that this dag belongs to |
static TezDAGID |
getInstance(org.apache.hadoop.yarn.api.records.ApplicationId applicationId,
int id)
Get a DAGID object from given ApplicationId. |
static TezDAGID |
getInstance(String yarnRMIdentifier,
int appId,
int id)
Get a DAGID object from given parts. |
int |
hashCode()
|
void |
readFields(DataInput in)
|
static TezDAGID |
readTezDAGID(DataInput in)
|
String |
toString()
|
void |
write(DataOutput out)
|
| Methods inherited from class org.apache.tez.dag.records.TezID |
|---|
getId, readID |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String DAG
| Constructor Detail |
|---|
public TezDAGID()
| Method Detail |
|---|
public static TezDAGID getInstance(org.apache.hadoop.yarn.api.records.ApplicationId applicationId,
int id)
ApplicationId.
applicationId - Application that this dag belongs toid - the dag number
public static TezDAGID getInstance(String yarnRMIdentifier,
int appId,
int id)
yarnRMIdentifier - YARN RM identifierappId - application numberid - the dag numberpublic org.apache.hadoop.yarn.api.records.ApplicationId getApplicationId()
ApplicationId object that this dag belongs to
public boolean equals(Object o)
equals in class TezIDpublic int compareTo(TezID o)
compareTo in interface Comparable<TezID>compareTo in class TezID
public void readFields(DataInput in)
throws IOException
readFields in interface org.apache.hadoop.io.WritablereadFields in class TezIDIOException
public static TezDAGID readTezDAGID(DataInput in)
throws IOException
IOException
public void write(DataOutput out)
throws IOException
write in interface org.apache.hadoop.io.Writablewrite in class TezIDIOExceptionpublic String toString()
toString in class TezIDpublic static TezDAGID fromString(String dagId)
protected StringBuilder appendTo(StringBuilder builder)
builder - the builder to append to
public int hashCode()
hashCode in class TezID
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||