public class TezDAGID extends TezID
ApplicationId,
that is the YARN Application ID that this DAG belongs to. The second part is
the DAG number.ApplicationIdTezID.TezIDCache<T>| Constructor and Description |
|---|
TezDAGID() |
| Modifier and Type | Method and Description |
|---|---|
protected StringBuilder |
appendTo(StringBuilder builder)
Add the unique string to the given builder.
|
static void |
clearCache() |
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 |
String |
getGroupId(int numDagsPerGroup)
Generate a DAG group id which groups multiple DAGs into one group.
|
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) |
public static final String DAG
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@InterfaceAudience.Private public static void clearCache()
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 topublic 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 TezDAGID readTezDAGID(DataInput in) throws IOException
IOExceptionpublic void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.Writablewrite in class TezIDIOExceptionpublic String getGroupId(int numDagsPerGroup)
numDagsPerGroup - The number of DAGs present in one group.protected StringBuilder appendTo(StringBuilder builder)
builder - the builder to append toCopyright © 2019 Apache Software Foundation. All rights reserved.