buffer.reset();
for(int i=0; i<1000; i++) {
int rand = (int) (Math.random()*10000.00);
key.set(" Key # " + i);
val.set( rand);
buffer.addValue(key, val);
}
int lastValue= Integer.MIN_VALUE;
valueMap = (Map<Text,IntWritable>)buffer.getValueMap();
for(Map.Entry<Text,IntWritable> entry : valueMap.entrySet()) {