}
// compute and add the outlier data
List<AggregateNumericMetric> datas = getOneHourDataForPKs(pks);
for (AggregateNumericMetric data : datas) {
MeasurementDataPK pk = new MeasurementDataPK(data.getTimestamp(), data.getScheduleId());
MeasurementOOBComposite comp = map.get(pk);
comp.setDataMin(data.getMin());
comp.setDataMax(data.getMax());
comp.calculateOutlier();
}
}
// return the result
long totalCount = (Long) countQuery.getSingleResult();
PageList<MeasurementOOBComposite> result = new PageList<MeasurementOOBComposite>(results, (int) totalCount, pc);