org.apache.hama.bsp
Class ID
java.lang.Object
org.apache.hama.bsp.ID
- All Implemented Interfaces:
- Comparable<ID>, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable<ID>
- Direct Known Subclasses:
- BSPJobID, TaskAttemptID, TaskID
public abstract class ID
- extends Object
- implements org.apache.hadoop.io.WritableComparable<ID>
A general identifier, which internally stores the id as an integer. This is
the super class of BSPJobID
, TaskID
and TaskAttemptID
.
Field Summary |
protected int |
id
|
protected static char |
SEPARATOR
|
Constructor Summary |
protected |
ID()
|
|
ID(int id)
|
SEPARATOR
protected static final char SEPARATOR
- See Also:
- Constant Field Values
id
protected int id
ID
public ID(int id)
ID
protected ID()
getId
public int getId()
toString
public String toString()
- Overrides:
toString
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
compareTo
public int compareTo(ID that)
- Specified by:
compareTo
in interface Comparable<ID>
readFields
public void readFields(DataInput in)
throws IOException
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Throws:
IOException
write
public void write(DataOutput out)
throws IOException
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Throws:
IOException
Copyright © 2011 The Apache Software Foundation