public void reduce(Iterator<Record> records, Collector<Record> out) {
Record next = records.next();
// Increments the first field of the first record of the reduce group by 100 and emit it
IntValue incrVal = next.getField(0, IntValue.class);
incrVal.setValue(incrVal.getValue() + 100);
next.setField(0, incrVal);
out.collect(next);
// emit all remaining records
while (records.hasNext()) {