Class TaskAttemptId
java.lang.Object
org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId
- All Implemented Interfaces:
Comparable<TaskAttemptId>
- Direct Known Subclasses:
TaskAttemptIdPBImpl
TaskAttemptId represents the unique identifier for a task
attempt. Each task attempt is one particular instance of a Map or Reduce Task
identified by its TaskId.
TaskAttemptId consists of 2 parts. First part is the TaskId,
that this TaskAttemptId belongs to. Second part is the task
attempt number.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
TASKATTEMPT
- See Also:
-
-
Constructor Details
-
TaskAttemptId
public TaskAttemptId()
-
-
Method Details
-
getTaskId
- Returns:
- the associated TaskId.
-
getId
public abstract int getId()- Returns:
- the attempt id.
-
setTaskId
-
setId
public abstract void setId(int id) -
hashCode
public int hashCode() -
equals
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<TaskAttemptId>
-