public static String replaceTaskIdFromFilename(String filename, String fileId) {
    String taskId = getTaskIdFromFilename(filename);
    String newTaskId = replaceTaskId(taskId, fileId);
    String ret = replaceTaskIdFromFilename(filename, taskId, newTaskId);
    return (ret);
  }
Replace the task id from the filename. It is assumed that the filename is derived from the
output of getTaskId

@param filename
         filename to replace taskid "0_0" or "0_0.gz" by 33 to "33_0" or "33_0.gz"
ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java