// wee need to do the final aggregation manually in the test, because the
// combiner is not guaranteed to do that
final HashMap<IntValue, IntValue> aggMap = new HashMap<IntValue, IntValue>();
for (Record record : this.outList) {
IntValue key = new IntValue();
IntValue value = new IntValue();
key = record.getField(0, key);
value = record.getField(1, value);
IntValue prevVal = aggMap.get(key);
if (prevVal != null) {
aggMap.put(key, new IntValue(prevVal.getValue() + value.getValue()));
}
else {
aggMap.put(key, value);
}
}