new TreeMap<IntWritable, Int2FloatMap>();
IntWritable nullWord = new IntWritable(0);
public void writePartialCounts(OutputCollector<IntWritable,PartialCountContainer> output) throws IOException
{
PartialCountContainer pcc = new PartialCountContainer();
Iterator<Map.Entry<IntWritable, Int2FloatMap>> i = counts.entrySet().iterator();
while (i.hasNext()) {
Map.Entry<IntWritable, Int2FloatMap> p = i.next();
pcc.setContent(p.getValue().getAsIndexedFloatArray());
output.collect(p.getKey(), pcc);
i.remove();
}
}