| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapreduce.ID
org.apache.hadoop.mapred.ID
org.apache.hadoop.mapreduce.TaskID
org.apache.hadoop.mapred.TaskID
@InterfaceAudience.Public @InterfaceStability.Stable public class TaskID
TaskID represents the immutable and unique identifier for 
 a Map or Reduce Task. Each TaskID encompasses multiple attempts made to
 execute the Map or Reduce Task, each of which are uniquely indentified by
 their TaskAttemptID.
 
 TaskID consists of 3 parts. First part is the JobID, that this 
 TaskInProgress 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. 
 
 An example TaskID is : 
 task_200707121733_0003_m_000005 , which represents the
 fifth map task in the third job running at the jobtracker 
 started at 200707121733. 
 
 Applications should never construct or parse TaskID strings
 , but rather use appropriate constructors or forName(String) 
 method.
JobID, 
TaskAttemptID| Field Summary | 
|---|
| Fields inherited from class org.apache.hadoop.mapreduce.TaskID | 
|---|
| idFormat, TASK | 
| Fields inherited from class org.apache.hadoop.mapreduce.ID | 
|---|
| id, SEPARATOR | 
| Constructor Summary | |
|---|---|
| TaskID() | |
| TaskID(JobID jobId,
             boolean isMap,
             int id)Deprecated. Use TaskID(String, int, TaskType, int) | |
| TaskID(JobID jobId,
             TaskType type,
             int id)Constructs a TaskID object from given JobID. | |
| TaskID(String jtIdentifier,
             int jobId,
             boolean isMap,
             int id)Deprecated. Use TaskID(org.apache.hadoop.mapreduce.JobID, TaskType,
 int) | |
| TaskID(String jtIdentifier,
             int jobId,
             TaskType type,
             int id)Constructs a TaskInProgressId object from given parts. | |
| Method Summary | |
|---|---|
| static TaskID | downgrade(TaskID old)Downgrade a new TaskID to an old one | 
| static TaskID | forName(String str) | 
|  JobID | getJobID()Returns the JobIDobject that this tip belongs to | 
| static String | getTaskIDsPattern(String jtIdentifier,
                                   Integer jobId,
                                   Boolean isMap,
                                   Integer taskId)Deprecated. Use getTaskIDsPattern(String, Integer, TaskType,
 Integer) | 
| static String | getTaskIDsPattern(String jtIdentifier,
                                   Integer jobId,
                                   TaskType type,
                                   Integer taskId)Deprecated. | 
| static TaskID | read(DataInput in)Deprecated. | 
| Methods inherited from class org.apache.hadoop.mapreduce.TaskID | 
|---|
| appendTo, compareTo, equals, getAllTaskTypes, getRepresentingCharacter, getTaskType, getTaskType, hashCode, isMap, readFields, toString, write | 
| Methods inherited from class org.apache.hadoop.mapreduce.ID | 
|---|
| getId | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
@Deprecated
public TaskID(JobID jobId,
                         boolean isMap,
                         int id)
TaskID(String, int, TaskType, int)
JobID.
jobId - JobID that this tip belongs toisMap - whether the tip is a mapid - the tip number
@Deprecated
public TaskID(String jtIdentifier,
                         int jobId,
                         boolean isMap,
                         int id)
TaskID(org.apache.hadoop.mapreduce.JobID, TaskType,
 int)
jtIdentifier - jobTracker identifierjobId - job numberisMap - whether the tip is a mapid - the tip number
public TaskID(JobID jobId,
              TaskType type,
              int id)
JobID.
jobId - JobID that this tip belongs totype - the TaskTypeid - the tip number
public TaskID(String jtIdentifier,
              int jobId,
              TaskType type,
              int id)
jtIdentifier - jobTracker identifierjobId - job numbertype - the TaskTypeid - the tip numberpublic TaskID()
| Method Detail | 
|---|
public static TaskID downgrade(TaskID old)
old - a new or old TaskID
@Deprecated
public static TaskID read(DataInput in)
                   throws IOException
IOExceptionpublic JobID getJobID()
TaskIDJobID object that this tip belongs to
getJobID in class TaskID
@Deprecated
public static String getTaskIDsPattern(String jtIdentifier,
                                                  Integer jobId,
                                                  Boolean isMap,
                                                  Integer taskId)
getTaskIDsPattern(String, Integer, TaskType,
 Integer)
TaskID.getTaskIDsPattern(null, null, true, 1);which will return :
"task_[^_]*_[0-9]*_m_000001*"
jtIdentifier - jobTracker identifier, or nulljobId - job number, or nullisMap - whether the tip is a map, or nulltaskId - taskId number, or null
@Deprecated
public static String getTaskIDsPattern(String jtIdentifier,
                                                  Integer jobId,
                                                  TaskType type,
                                                  Integer taskId)
TaskID.getTaskIDsPattern(null, null, true, 1);which will return :
"task_[^_]*_[0-9]*_m_000001*"
jtIdentifier - jobTracker identifier, or nulljobId - job number, or nulltype - the TaskType, or nulltaskId - taskId number, or null
public static TaskID forName(String str)
                      throws IllegalArgumentException
IllegalArgumentException| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||