}
}
private static void doAggregation(JsIntegerDoubleMap in,
final JsIntegerDoubleMap out) {
in.iterate(new IterationCallBack() {
public void onIteration(int key, double val) {
double duration = out.hasKey(key) ? out.get(key) + val : val;
out.put(key, duration);
}
});