@InterfaceAudience.Public @InterfaceStability.Stable public class JobID extends ID implements Comparable<ID>
job_200707121733_0003 , which represents the third job
running at the jobtracker started at 200707121733.
Applications should never construct or parse JobID strings, but rather
use appropriate constructors or forName(String) method.
TaskID,
TaskAttemptID| Modifier and Type | Field and Description |
|---|---|
protected static NumberFormat |
idFormat |
static String |
JOB |
static String |
JOBID_REGEX |
| Constructor and Description |
|---|
JobID() |
JobID(String jtIdentifier,
int id)
Constructs a JobID object
|
| Modifier and Type | Method and Description |
|---|---|
StringBuilder |
appendTo(StringBuilder builder)
Add the stuff after the "job" prefix to the given builder.
|
int |
compareTo(ID o)
Compare JobIds by first jtIdentifiers, then by job numbers
|
boolean |
equals(Object o) |
static JobID |
forName(String str)
Construct a JobId object from given string
|
String |
getJtIdentifier() |
int |
hashCode() |
void |
readFields(DataInput in) |
String |
toString() |
void |
write(DataOutput out) |
public static final String JOB
public static final String JOBID_REGEX
protected static final NumberFormat idFormat
public JobID(String jtIdentifier, int id)
jtIdentifier - jobTracker identifierid - job numberpublic JobID()
public String getJtIdentifier()
public int compareTo(ID o)
compareTo in interface Comparable<ID>compareTo in class IDpublic StringBuilder appendTo(StringBuilder builder)
builder - the builder to append topublic void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritablereadFields in class IDIOExceptionpublic void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.Writablewrite in class IDIOExceptionpublic static JobID forName(String str) throws IllegalArgumentException
IllegalArgumentException - if the given string is malformedCopyright © 2008–2019 Apache Software Foundation. All rights reserved.