Class TaskId
java.lang.Object
org.apache.hadoop.mapreduce.v2.api.records.TaskId
- All Implemented Interfaces:
Comparable<TaskId>
- Direct Known Subclasses:
TaskIdPBImpl
TaskId represents the unique identifier for a Map or Reduce
Task.
TaskId consists of 3 parts. First part is JobId, that this Task
belongs to. Second part of the TaskId is either 'm' or 'r' representing
whether the task is a map task or a reduce task. And the third part is the
task number.
-
Field Details
-
TASK
- See Also:
-
-
Constructor Details
-
TaskId
public TaskId()
-
-
Method Details
-
getJobId
- Returns:
- the associated
JobId
-
getTaskType
- Returns:
- the type of the task - MAP/REDUCE
-
getId
public abstract int getId()- Returns:
- the task number.
-
setJobId
-
setTaskType
-
setId
public abstract void setId(int id) -
hashCode
public int hashCode() -
equals
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<TaskId>
-