convertToArray(quantilesList);
for (Entry<Object, Object> ent : weightedPartsData.entrySet()) {
Tuple key = (Tuple) ent.getKey(); // sample item which repeats
float[] probVec = getProbVec((Tuple) ent.getValue());
weightedParts.put(getPigNullableWritable(key),
new DiscreteProbabilitySampleGenerator(probVec));
}
} catch (Exception e) {
throw new RuntimeException(e);
}
comparator = ConfigUtils.getIntermediateInputKeyComparator(job);