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() |
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 © 2020 Apache Software Foundation. All rights reserved.