if (!oldVal.equals(newVal)) {
reducer.setRef(newVal);
}
resolve(reducer.getProperties(), true);
}
PartitionPlan plan = partition.getPlan();
if (plan != null) {
oldVal = plan.getPartitions();
if (oldVal != null) {
newVal = resolve(oldVal);
if (!oldVal.equals(newVal)) {
plan.setPartitions(newVal);
}
}
oldVal = plan.getThreads();
if (oldVal != null) {
newVal = resolve(oldVal);
if (!oldVal.equals(newVal)) {
plan.setThreads(newVal);
}
}
//plan properties should be resolved at job load time (1st pass)
if (!resolvePartitionPlanProperties) {
for (org.jberet.job.Properties p : plan.getProperties()) {
resolve(p, true);
}
}
}
PartitionMapper mapper = partition.getMapper();