private Map<String, Integer> finalReducedMap = new HashMap<String, Integer>();
@Override
public void onReceive(Object message) throws Exception {
if (message instanceof ReduceData) {
ReduceData reduceData = (ReduceData) message;
aggregateInMemoryReduce(reduceData.getReduceDataList());
} else if (message instanceof Result) {
System.out.println(finalReducedMap.toString());
} else
unhandled(message);
}