/** * Get the user defined {@link RawComparator} comparator for * grouping keys of inputs to the combiner. * * @return comparator set by the user for grouping values. * @see Job#setCombinerKeyGroupingComparatorClass(Class) for details. */ public RawComparator<?> getCombinerKeyGroupingComparator() { return getSortComparator(); }
/** * Get the timestamps of the files. Used by internal * DistributedCache and MapReduce code. * @return a string array of timestamps * @throws IOException */ public String[] getFileTimestamps() { return toTimestampStrs(DistributedCache.getFileTimestamps(conf)); }
public void initTask(LogicalOutput output) throws IOException, InterruptedException { // By this time output has been initialized this.output = output; if (output instanceof MROutputLegacy) { committer = ((MROutputLegacy)output).getOutputCommitter(); } this.mrReporter = new MRTaskReporter(processorContext); this.useNewApi = jobConf.getUseNewMapper(); TezDAGID dagId = IDConverter.fromMRTaskAttemptId(taskAttemptId).getTaskID() .getVertexID().getDAGId(); this.jobContext = new JobContextImpl(jobConf, dagId, mrReporter); this.taskAttemptContext = new TaskAttemptContextImpl(jobConf, taskAttemptId, mrReporter); localizeConfiguration(jobConf); }
/** * Get the timestamps of the archives. Used by internal * DistributedCache and MapReduce code. * @return a string array of timestamps * @throws IOException */ public String[] getArchiveTimestamps() { return toTimestampStrs(DistributedCache.getArchiveTimestamps(conf)); }