/** * Wraps the key comparator defined in the job with this {@link KeyComparatorWrapper} if it is defined. * @param job The MapReduce job */ static void wrap(Job job) { if (WrapperUtil.setIfDefined(job, MRJobConfig.KEY_COMPARATOR, ATTR_CLASS)) { job.setSortComparatorClass(KeyComparatorWrapper.class); } }
/** * Wraps the group comparator defined in the job with this {@link GroupComparatorWrapper} if it is defined. * @param job The MapReduce job */ static void wrap(Job job) { if (WrapperUtil.setIfDefined(job, MRJobConfig.GROUP_COMPARATOR_CLASS, ATTR_CLASS)) { job.setGroupingComparatorClass(GroupComparatorWrapper.class); } }
/** * Wraps the partitioner defined in the job with this {@link PartitionerWrapper} if it is defined. * @param job The MapReduce job */ public static void wrap(Job job) { if (WrapperUtil.setIfDefined(job, MRJobConfig.PARTITIONER_CLASS_ATTR, ATTR_CLASS)) { job.setPartitionerClass(PartitionerWrapper.class); } }
/** * Wraps the partitioner defined in the job with this {@link PartitionerWrapper} if it is defined. * @param job The MapReduce job */ public static void wrap(Job job) { if (WrapperUtil.setIfDefined(job, MRJobConfig.PARTITIONER_CLASS_ATTR, ATTR_CLASS)) { job.setPartitionerClass(PartitionerWrapper.class); } }
/** * Wraps the combiner group comparator defined in the job with this {@link CombinerGroupComparatorWrapper} if it is * defined. * @param job The MapReduce job */ static void wrap(Job job) { if (WrapperUtil.setIfDefined(job, MRJobConfig.COMBINER_GROUP_COMPARATOR_CLASS, ATTR_CLASS)) { job.setCombinerKeyGroupingComparatorClass(CombinerGroupComparatorWrapper.class); } }
/** * Wraps the combiner group comparator defined in the job with this {@link CombinerGroupComparatorWrapper} if it is * defined. * @param job The MapReduce job */ static void wrap(Job job) { if (WrapperUtil.setIfDefined(job, MRJobConfig.COMBINER_GROUP_COMPARATOR_CLASS, ATTR_CLASS)) { job.setCombinerKeyGroupingComparatorClass(CombinerGroupComparatorWrapper.class); } }
/** * Wraps the group comparator defined in the job with this {@link GroupComparatorWrapper} if it is defined. * @param job The MapReduce job */ static void wrap(Job job) { if (WrapperUtil.setIfDefined(job, MRJobConfig.GROUP_COMPARATOR_CLASS, ATTR_CLASS)) { job.setGroupingComparatorClass(GroupComparatorWrapper.class); } }
/** * Wraps the key comparator defined in the job with this {@link KeyComparatorWrapper} if it is defined. * @param job The MapReduce job */ static void wrap(Job job) { if (WrapperUtil.setIfDefined(job, MRJobConfig.KEY_COMPARATOR, ATTR_CLASS)) { job.setSortComparatorClass(KeyComparatorWrapper.class); } }