public abstract class ID extends java.lang.Object implements org.apache.hadoop.io.WritableComparable<ID>
JobID,
TaskID and TaskAttemptID.JobID,
TaskID,
TaskAttemptID| Modifier and Type | Field and Description |
|---|---|
protected int |
id |
protected static char |
SEPARATOR |
| Modifier | Constructor and Description |
|---|---|
protected |
ID() |
|
ID(int id)
constructs an ID object from the given int
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ID that)
Compare IDs by associated numbers
|
boolean |
equals(java.lang.Object o) |
int |
getId()
returns the int which represents the identifier
|
int |
hashCode() |
void |
readFields(java.io.DataInput in) |
java.lang.String |
toString() |
void |
write(java.io.DataOutput out) |
protected static final char SEPARATOR
protected int id
public ID(int id)
protected ID()
public int getId()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int compareTo(ID that)
compareTo in interface java.lang.Comparable<ID>public void readFields(java.io.DataInput in)
throws java.io.IOException
readFields in interface org.apache.hadoop.io.Writablejava.io.IOExceptionpublic void write(java.io.DataOutput out)
throws java.io.IOException
write in interface org.apache.hadoop.io.Writablejava.io.IOExceptionCopyright © 2009 The Apache Software Foundation