@Deprecated static StringBuilder getTaskIDsPatternWOPrefix(String jtIdentifier , Integer jobId, Boolean isMap, Integer taskId) { StringBuilder builder = new StringBuilder(); builder.append(JobID.getJobIDsPatternWOPrefix(jtIdentifier, jobId)) .append(SEPARATOR) .append(isMap != null ? (isMap ? "m" : "r") : "(m|r)").append(SEPARATOR) .append(taskId != null ? idFormat.format(taskId) : "[0-9]*"); return builder; }
static StringBuilder getTaskIDsPatternWOPrefix(String jtIdentifier , Integer jobId, Boolean isMap, Integer taskId) { StringBuilder builder = new StringBuilder(); builder.append(JobID.getJobIDsPatternWOPrefix(jtIdentifier, jobId)) .append(UNDERSCORE) .append(isMap != null ? (isMap ? "m" : "r") : "(m|r)").append(UNDERSCORE) .append(taskId != null ? idFormat.format(taskId) : "[0-9]*"); return builder; }
/** * Returns a regex pattern which matches task IDs. Arguments can * be given null, in which case that part of the regex will be generic. * For example to obtain a regex matching <i>any job</i> * run on the jobtracker started at <i>200707121733</i>, we would use : * <pre> * JobID.getTaskIDsPattern("200707121733", null); * </pre> * which will return : * <pre> "job_200707121733_[0-9]*" </pre> * @param jtIdentifier jobTracker identifier, or null * @param jobId job number, or null * @return a regex pattern matching JobIDs */ public static String getJobIDsPattern(String jtIdentifier, Integer jobId) { StringBuilder builder = new StringBuilder(JOB).append(UNDERSCORE); builder.append(getJobIDsPatternWOPrefix(jtIdentifier, jobId)); return builder.toString(); }
/** * Returns a regex pattern which matches task IDs. Arguments can * be given null, in which case that part of the regex will be generic. * For example to obtain a regex matching <i>any job</i> * run on the jobtracker started at <i>200707121733</i>, we would use : * <pre> * JobID.getTaskIDsPattern("200707121733", null); * </pre> * which will return : * <pre> "job_200707121733_[0-9]*" </pre> * @param jtIdentifier jobTracker identifier, or null * @param jobId job number, or null * @return a regex pattern matching JobIDs */ @Deprecated public static String getJobIDsPattern(String jtIdentifier, Integer jobId) { StringBuilder builder = new StringBuilder(JOB).append(SEPARATOR); builder.append(getJobIDsPatternWOPrefix(jtIdentifier, jobId)); return builder.toString(); }
/** * Returns a regex pattern which matches task IDs. Arguments can * be given null, in which case that part of the regex will be generic. * For example to obtain a regex matching <i>any job</i> * run on the jobtracker started at <i>200707121733</i>, we would use : * <pre> * JobID.getTaskIDsPattern("200707121733", null); * </pre> * which will return : * <pre> "job_200707121733_[0-9]*" </pre> * @param jtIdentifier jobTracker identifier, or null * @param jobId job number, or null * @return a regex pattern matching JobIDs */ @Deprecated public static String getJobIDsPattern(String jtIdentifier, Integer jobId) { StringBuilder builder = new StringBuilder(JOB).append(SEPARATOR); builder.append(getJobIDsPatternWOPrefix(jtIdentifier, jobId)); return builder.toString(); }
/** * Returns a regex pattern which matches task IDs. Arguments can * be given null, in which case that part of the regex will be generic. * For example to obtain a regex matching <i>any job</i> * run on the jobtracker started at <i>200707121733</i>, we would use : * <pre> * JobID.getTaskIDsPattern("200707121733", null); * </pre> * which will return : * <pre> "job_200707121733_[0-9]*" </pre> * @param jtIdentifier jobTracker identifier, or null * @param jobId job number, or null * @return a regex pattern matching JobIDs */ @Deprecated public static String getJobIDsPattern(String jtIdentifier, Integer jobId) { StringBuilder builder = new StringBuilder(JOB).append(SEPARATOR); builder.append(getJobIDsPatternWOPrefix(jtIdentifier, jobId)); return builder.toString(); }
/** * Returns a regex pattern which matches task IDs. Arguments can * be given null, in which case that part of the regex will be generic. * For example to obtain a regex matching <i>any job</i> * run on the jobtracker started at <i>200707121733</i>, we would use : * <pre> * JobID.getTaskIDsPattern("200707121733", null); * </pre> * which will return : * <pre> "job_200707121733_[0-9]*" </pre> * @param jtIdentifier jobTracker identifier, or null * @param jobId job number, or null * @return a regex pattern matching JobIDs */ @Deprecated public static String getJobIDsPattern(String jtIdentifier, Integer jobId) { StringBuilder builder = new StringBuilder(JOB).append(SEPARATOR); builder.append(getJobIDsPatternWOPrefix(jtIdentifier, jobId)); return builder.toString(); }
/** * Returns a regex pattern which matches task IDs. Arguments can * be given null, in which case that part of the regex will be generic. * For example to obtain a regex matching <i>any job</i> * run on the jobtracker started at <i>200707121733</i>, we would use : * <pre> * JobID.getTaskIDsPattern("200707121733", null); * </pre> * which will return : * <pre> "job_200707121733_[0-9]*" </pre> * @param jtIdentifier jobTracker identifier, or null * @param jobId job number, or null * @return a regex pattern matching JobIDs */ @Deprecated public static String getJobIDsPattern(String jtIdentifier, Integer jobId) { StringBuilder builder = new StringBuilder(JOB).append(SEPARATOR); builder.append(getJobIDsPatternWOPrefix(jtIdentifier, jobId)); return builder.toString(); }
/** * Returns a regex pattern which matches task IDs. Arguments can * be given null, in which case that part of the regex will be generic. * For example to obtain a regex matching <i>any job</i> * run on the jobtracker started at <i>200707121733</i>, we would use : * <pre> * JobID.getTaskIDsPattern("200707121733", null); * </pre> * which will return : * <pre> "job_200707121733_[0-9]*" </pre> * @param jtIdentifier jobTracker identifier, or null * @param jobId job number, or null * @return a regex pattern matching JobIDs */ @Deprecated public static String getJobIDsPattern(String jtIdentifier, Integer jobId) { StringBuilder builder = new StringBuilder(JOB).append(SEPARATOR); builder.append(getJobIDsPatternWOPrefix(jtIdentifier, jobId)); return builder.toString(); }
@Deprecated static StringBuilder getTaskIDsPatternWOPrefix(String jtIdentifier , Integer jobId, TaskType type, Integer taskId) { StringBuilder builder = new StringBuilder(); builder.append(JobID.getJobIDsPatternWOPrefix(jtIdentifier, jobId)) .append(SEPARATOR) .append(type != null ? (org.apache.hadoop.mapreduce.TaskID.getRepresentingCharacter(type)) : org.apache.hadoop.mapreduce.TaskID.getAllTaskTypes()). append(SEPARATOR) .append(taskId != null ? idFormat.format(taskId) : "[0-9]*"); return builder; }
@Deprecated static StringBuilder getTaskIDsPatternWOPrefix(String jtIdentifier , Integer jobId, TaskType type, Integer taskId) { StringBuilder builder = new StringBuilder(); builder.append(JobID.getJobIDsPatternWOPrefix(jtIdentifier, jobId)) .append(SEPARATOR) .append(type != null ? (org.apache.hadoop.mapreduce.TaskID.getRepresentingCharacter(type)) : org.apache.hadoop.mapreduce.TaskID.getAllTaskTypes()). append(SEPARATOR) .append(taskId != null ? idFormat.format(taskId) : "[0-9]*"); return builder; }
@Deprecated static StringBuilder getTaskIDsPatternWOPrefix(String jtIdentifier , Integer jobId, TaskType type, Integer taskId) { StringBuilder builder = new StringBuilder(); builder.append(JobID.getJobIDsPatternWOPrefix(jtIdentifier, jobId)) .append(SEPARATOR) .append(type != null ? (org.apache.hadoop.mapreduce.TaskID.getRepresentingCharacter(type)) : org.apache.hadoop.mapreduce.TaskID.getAllTaskTypes()). append(SEPARATOR) .append(taskId != null ? idFormat.format(taskId) : "[0-9]*"); return builder; }
@Deprecated static StringBuilder getTaskIDsPatternWOPrefix(String jtIdentifier , Integer jobId, TaskType type, Integer taskId) { StringBuilder builder = new StringBuilder(); builder.append(JobID.getJobIDsPatternWOPrefix(jtIdentifier, jobId)) .append(SEPARATOR) .append(type != null ? (org.apache.hadoop.mapreduce.TaskID.getRepresentingCharacter(type)) : org.apache.hadoop.mapreduce.TaskID.getAllTaskTypes()). append(SEPARATOR) .append(taskId != null ? idFormat.format(taskId) : "[0-9]*"); return builder; }
@Deprecated static StringBuilder getTaskIDsPatternWOPrefix(String jtIdentifier , Integer jobId, TaskType type, Integer taskId) { StringBuilder builder = new StringBuilder(); builder.append(JobID.getJobIDsPatternWOPrefix(jtIdentifier, jobId)) .append(SEPARATOR) .append(type != null ? (org.apache.hadoop.mapreduce.TaskID.getRepresentingCharacter(type)) : org.apache.hadoop.mapreduce.TaskID.getAllTaskTypes()). append(SEPARATOR) .append(taskId != null ? idFormat.format(taskId) : "[0-9]*"); return builder; }