// numQuantiles here is the reduce parallelism
Map<String, Object> quantileMap = (Map<String, Object>) t.get(0);
quantilesList = (DataBag) quantileMap.get(FindQuantiles.QUANTILES_LIST);
InternalMap weightedPartsData = (InternalMap) quantileMap.get(FindQuantiles.WEIGHTED_PARTS);
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));
}