org.apache.hama.bsp
Class TaskAttemptID
java.lang.Object
org.apache.hama.bsp.ID
org.apache.hama.bsp.TaskAttemptID
- All Implemented Interfaces:
- java.lang.Comparable<ID>, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable<ID>
public class TaskAttemptID
- extends ID
TaskAttemptID is a unique identifier for a task attempt.
Field Summary |
protected static java.lang.String |
ATTEMPT
|
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 |
ATTEMPT
protected static final java.lang.String ATTEMPT
- See Also:
- Constant Field Values
TaskAttemptID
public TaskAttemptID(TaskID taskId,
int id)
TaskAttemptID
public TaskAttemptID(java.lang.String jtIdentifier,
int jobId,
int taskId,
int id)
TaskAttemptID
public TaskAttemptID()
getJobID
public BSPJobID getJobID()
getTaskID
public TaskID getTaskID()
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class ID
appendTo
protected java.lang.StringBuilder appendTo(java.lang.StringBuilder builder)
readFields
public void readFields(java.io.DataInput in)
throws java.io.IOException
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Overrides:
readFields
in class ID
- Throws:
java.io.IOException
write
public void write(java.io.DataOutput out)
throws java.io.IOException
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Overrides:
write
in class ID
- Throws:
java.io.IOException
hashCode
public int hashCode()
- Overrides:
hashCode
in class ID
compareTo
public int compareTo(ID o)
- Specified by:
compareTo
in interface java.lang.Comparable<ID>
- Overrides:
compareTo
in class ID
toString
public java.lang.String toString()
- Overrides:
toString
in class ID
forName
public static TaskAttemptID forName(java.lang.String str)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.