public abstract class TaskId extends Object implements Comparable<TaskId>
 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.
 
| Constructor and Description | 
|---|
| TaskId() | 
| Modifier and Type | Method and Description | 
|---|---|
| int | compareTo(TaskId other) | 
| boolean | equals(Object obj) | 
| abstract int | getId() | 
| abstract JobId | getJobId() | 
| abstract TaskType | getTaskType() | 
| int | hashCode() | 
| abstract void | setId(int id) | 
| abstract void | setJobId(JobId jobId) | 
| abstract void | setTaskType(TaskType taskType) | 
| String | toString() | 
protected static final String TASK
public abstract JobId getJobId()
JobIdpublic abstract TaskType getTaskType()
public abstract int getId()
public abstract void setJobId(JobId jobId)
public abstract void setTaskType(TaskType taskType)
public abstract void setId(int id)
public int compareTo(TaskId other)
compareTo in interface Comparable<TaskId>Copyright © 2008–2023 Apache Software Foundation. All rights reserved.