ret.setAsString(taskID.toString());
return ret;
}
private static ThriftTaskID toThrift(TaskID taskID) {
ThriftTaskID ret = new ThriftTaskID();
ret.setJobID(toThrift(taskID.getJobID()));
ret.setTaskID(taskID.getId());
ret.setTaskType(getThriftTaskType(taskID));
ret.setAsString(taskID.toString());
return ret;
}