org.apache.hama.bsp
Class BSPJobID
java.lang.Object
org.apache.hama.bsp.ID
org.apache.hama.bsp.BSPJobID
- All Implemented Interfaces:
- Comparable<ID>, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable<ID>
public class BSPJobID
- extends ID
- implements Comparable<ID>
BSPJobID represents the immutable and unique identifier for the job.
Methods inherited from class org.apache.hama.bsp.ID |
getId |
JOB
protected static final String JOB
- See Also:
- Constant Field Values
idFormat
protected static final NumberFormat idFormat
BSPJobID
public BSPJobID(String jtIdentifier,
int id)
BSPJobID
public BSPJobID()
getJtIdentifier
public String getJtIdentifier()
equals
public boolean equals(Object o)
- Overrides:
equals
in class ID
compareTo
public int compareTo(ID o)
- Specified by:
compareTo
in interface Comparable<ID>
- Overrides:
compareTo
in class ID
appendTo
public StringBuilder appendTo(StringBuilder builder)
hashCode
public int hashCode()
- Overrides:
hashCode
in class ID
toString
public String toString()
- Overrides:
toString
in class ID
readFields
public void readFields(DataInput in)
throws IOException
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Overrides:
readFields
in class ID
- Throws:
IOException
write
public void write(DataOutput out)
throws IOException
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Overrides:
write
in class ID
- Throws:
IOException
forName
public BSPJobID forName(String str)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
Copyright © 2011 The Apache Software Foundation