public abstract class TaskAttemptId extends Object implements Comparable<TaskAttemptId>
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.
Modifier and Type | Field and Description |
---|---|
protected static String |
TASKATTEMPT |
Constructor and Description |
---|
TaskAttemptId() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(TaskAttemptId other) |
boolean |
equals(Object obj) |
abstract int |
getId() |
abstract TaskId |
getTaskId() |
int |
hashCode() |
abstract void |
setId(int id) |
abstract void |
setTaskId(TaskId taskId) |
String |
toString() |
protected static final String TASKATTEMPT
public abstract TaskId getTaskId()
public abstract int getId()
public abstract void setTaskId(TaskId taskId)
public abstract void setId(int id)
public int compareTo(TaskAttemptId other)
compareTo
in interface Comparable<TaskAttemptId>
Copyright © 2008–2021 Apache Software Foundation. All rights reserved.