org.apache.hama.bsp
Class TaskID

java.lang.Object
  extended by org.apache.hama.bsp.ID
      extended by org.apache.hama.bsp.TaskID
All Implemented Interfaces:
Comparable<ID>, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable<ID>

public class TaskID
extends ID

TaskID represents the immutable and unique identifier for a BSP Task.


Field Summary
protected static NumberFormat idFormat
           
protected static String TASK
           
 
Fields inherited from class org.apache.hama.bsp.ID
id, SEPARATOR
 
Constructor Summary
TaskID()
           
TaskID(BSPJobID jobId, int id)
           
TaskID(String jtIdentifier, int jobId, int id)
           
 
Method Summary
protected  StringBuilder appendTo(StringBuilder builder)
           
 int compareTo(ID o)
           
 boolean equals(Object o)
           
static TaskID forName(String str)
           
 BSPJobID getJobID()
          Returns the BSPJobID object that this tip belongs to
 int hashCode()
           
 void readFields(DataInput in)
           
 String toString()
           
 void write(DataOutput out)
           
 
Methods inherited from class org.apache.hama.bsp.ID
getId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TASK

protected static final String TASK
See Also:
Constant Field Values

idFormat

protected static final NumberFormat idFormat
Constructor Detail

TaskID

public TaskID(BSPJobID jobId,
              int id)

TaskID

public TaskID(String jtIdentifier,
              int jobId,
              int id)

TaskID

public TaskID()
Method Detail

getJobID

public BSPJobID getJobID()
Returns the BSPJobID object that this tip belongs to


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

toString

public String toString()
Overrides:
toString in class ID

appendTo

protected StringBuilder appendTo(StringBuilder builder)

hashCode

public int hashCode()
Overrides:
hashCode 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 static TaskID forName(String str)
                      throws IllegalArgumentException
Throws:
IllegalArgumentException


Copyright © 2011 The Apache Software Foundation