ptype.initialize(runtimeContext.getConfiguration());
Job job = new Job(runtimeContext.getConfiguration());
ptype.configureShuffle(job, GroupingOptions.builder().partitionerClass(partitionerClass).build());
partitioner = ReflectionUtils.newInstance(partitionerClass, job.getConfiguration());
} catch (IOException e) {
throw new CrunchRuntimeException("Error configuring partitioner", e);
}
}
return partitioner;
}