Class JobId
java.lang.Object
org.apache.hadoop.mapreduce.v2.api.records.JobId
- All Implemented Interfaces:
Comparable<JobId>
- Direct Known Subclasses:
JobIdPBImpl
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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanabstract org.apache.hadoop.yarn.api.records.ApplicationIdgetAppId()Get the associated ApplicationId which represents the start time of theResourceManagerand is used to generate the globally uniqueJobId.abstract intgetId()Get the short integer identifier of theJobIdwhich is unique for all applications started by a particular instance of theResourceManager.inthashCode()abstract voidsetAppId(org.apache.hadoop.yarn.api.records.ApplicationId appId) abstract voidsetId(int id) toString()
-
Field Details
-
JOB
- See Also:
-
SEPARATOR
protected static final char SEPARATOR- See Also:
-
-
Constructor Details
-
JobId
public JobId()
-
-
Method Details
-
getAppId
public abstract org.apache.hadoop.yarn.api.records.ApplicationId getAppId()Get the associated ApplicationId which represents the start time of theResourceManagerand is used to generate the globally uniqueJobId.- Returns:
- associated
ApplicationId
-
getId
public abstract int getId()Get the short integer identifier of theJobIdwhich is unique for all applications started by a particular instance of theResourceManager.- Returns:
- short integer identifier of the
JobId
-
setAppId
public abstract void setAppId(org.apache.hadoop.yarn.api.records.ApplicationId appId) -
setId
public abstract void setId(int id) -
toString
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<JobId>
-