You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Owen O'Malley (JIRA)" <ji...@apache.org> on 2007/01/09 00:09:27 UTC
[jira] Updated: (HADOOP-544) Replace the job, tip and task ids with
objects.
[ https://issues.apache.org/jira/browse/HADOOP-544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Owen O'Malley updated HADOOP-544:
---------------------------------
Description:
I think that it is silly to have tools parsing the strings that the framework builds for task ids. I propose:
class JobId implements Writable {
public int getJobId() {...}
}
class TaskId implements Writable {
public JobId getJobId();
public boolean isMap() { ... }
public int getTaskId() { ... }
}
class TaskAttemptId implements Writable {
public TaskId getTaskId();
public int getAttemptId();
}
each of the classes will have a toString() method that generates the current string.
was:
I think that it is silly to have tools parsing the strings that the framework builds for task ids. I propose:
class JobId implements Writable {
private int;
...
}
class TaskId extends JobId {
private boolean isMap;
private int taskId;
...
}
class TaskAttemptId extends TaskId {
private int attemptId;
...
}
each of the classes will have a toString() method that generates the current string.
> Replace the job, tip and task ids with objects.
> -----------------------------------------------
>
> Key: HADOOP-544
> URL: https://issues.apache.org/jira/browse/HADOOP-544
> Project: Hadoop
> Issue Type: Improvement
> Components: mapred
> Affects Versions: 0.6.2
> Reporter: Owen O'Malley
> Assigned To: Owen O'Malley
>
> I think that it is silly to have tools parsing the strings that the framework builds for task ids. I propose:
> class JobId implements Writable {
> public int getJobId() {...}
> }
> class TaskId implements Writable {
> public JobId getJobId();
> public boolean isMap() { ... }
> public int getTaskId() { ... }
> }
> class TaskAttemptId implements Writable {
> public TaskId getTaskId();
> public int getAttemptId();
> }
> each of the classes will have a toString() method that generates the current string.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira