use of com.linkedin.thirdeye.datalayer.pojo.MetricConfigBean in project pinot by linkedin.
the class MetricConfigManagerImpl method findByDataset.
@Override
public List<MetricConfigDTO> findByDataset(String dataset) {
Predicate predicate = Predicate.EQ("dataset", dataset);
List<MetricConfigBean> list = genericPojoDao.get(predicate, MetricConfigBean.class);
List<MetricConfigDTO> result = new ArrayList<>();
for (MetricConfigBean abstractBean : list) {
MetricConfigDTO dto = MODEL_MAPPER.map(abstractBean, MetricConfigDTO.class);
result.add(dto);
}
return result;
}
Aggregations