@InterfaceAudience.Public @InterfaceStability.Stable public abstract class ID extends 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
|
protected static final char SEPARATOR
protected int id
public ID(int id)
protected ID()
public int getId()
public int compareTo(ID that)
compareTo in interface Comparable<ID>public void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionpublic void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.