use of com.linkedin.thirdeye.datalayer.bao.RawAnomalyResultManager in project pinot by linkedin.
the class DetectionTaskRunner method storeData.
private void storeData(AnomalyDetectionOutputContext anomalyDetectionOutputContext) {
RawAnomalyResultManager rawAnomalyDAO = DAO_REGISTRY.getRawAnomalyResultDAO();
MergedAnomalyResultManager mergedAmomalyDAO = DAO_REGISTRY.getMergedAnomalyResultDAO();
for (RawAnomalyResultDTO rawAnomalyResultDTO : anomalyDetectionOutputContext.getRawAnomalies().values()) {
rawAnomalyDAO.save(rawAnomalyResultDTO);
}
for (MergedAnomalyResultDTO mergedAnomalyResultDTO : anomalyDetectionOutputContext.getMergedAnomalies().values()) {
mergedAmomalyDAO.update(mergedAnomalyResultDTO);
}
}
Aggregations