162163164165166167168169170171172
long t = evt.getTimestamp(); // Is in target window if (startTime < t && t < endTime) { if (EventType.HIT_FLIPPED.equals(evt.getType())) { long slot = (t - startTime) / curve.getInterval(); curve.incrCount((int) slot); } } } maps.put(name, curve); }
182183184185186187188189190191192
Queue< Event > qEvents = mapOfEvents.get(qName); for (Event evt : qEvents) { long t = evt.getTimestamp(); if (startTime < t && t < endTime) { long slot = (t - startTime) / curve.getInterval(); curve.incrCount((int) slot); } } } return curve; }