java.lang.Comparable<JobId>JobIdPBImplpublic abstract class JobId extends java.lang.Object implements java.lang.Comparable<JobId>
JobId represents the globally unique
identifier for a MapReduce job.
The globally unique nature of the identifier is achieved by using the
cluster timestamp from the associated ApplicationId. i.e.
start-time of the ResourceManager along with a monotonically
increasing counter for the jobId.
| Modifier and Type | Field | Description |
|---|---|---|
protected static java.lang.String |
JOB |
|
protected static char |
SEPARATOR |
| Constructor | Description |
|---|---|
JobId() |
| Modifier and Type | Method | Description |
|---|---|---|
int |
compareTo(JobId other) |
|
boolean |
equals(java.lang.Object obj) |
|
abstract org.apache.hadoop.yarn.api.records.ApplicationId |
getAppId() |
Get the associated ApplicationId which represents the
start time of the
ResourceManager and is used to generate
the globally unique JobId. |
abstract int |
getId() |
Get the short integer identifier of the
JobId
which is unique for all applications started by a particular instance
of the ResourceManager. |
int |
hashCode() |
|
abstract void |
setAppId(org.apache.hadoop.yarn.api.records.ApplicationId appId) |
|
abstract void |
setId(int id) |
|
java.lang.String |
toString() |
protected static final java.lang.String JOB
protected static final char SEPARATOR
public abstract org.apache.hadoop.yarn.api.records.ApplicationId getAppId()
ResourceManager and is used to generate
the globally unique JobId.ApplicationIdpublic abstract int getId()
JobId
which is unique for all applications started by a particular instance
of the ResourceManager.JobIdpublic abstract void setAppId(org.apache.hadoop.yarn.api.records.ApplicationId appId)
public abstract void setId(int id)
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.