use of com.linkedin.thirdeye.datalayer.pojo.DataCompletenessConfigBean in project pinot by linkedin.
the class DataCompletenessConfigManagerImpl method convertListOfBeanToDTO.
private List<DataCompletenessConfigDTO> convertListOfBeanToDTO(List<DataCompletenessConfigBean> list) {
List<DataCompletenessConfigDTO> results = new ArrayList<>();
for (DataCompletenessConfigBean abstractBean : list) {
DataCompletenessConfigDTO dto = MODEL_MAPPER.map(abstractBean, DataCompletenessConfigDTO.class);
results.add(dto);
}
return results;
}
use of com.linkedin.thirdeye.datalayer.pojo.DataCompletenessConfigBean in project pinot by linkedin.
the class DataCompletenessConfigManagerImpl method findAllByTimeOlderThan.
@Override
public List<DataCompletenessConfigDTO> findAllByTimeOlderThan(long time) {
Predicate predicate = Predicate.LT("dateToCheckInMS", time);
List<DataCompletenessConfigBean> list = genericPojoDao.get(predicate, DataCompletenessConfigBean.class);
return convertListOfBeanToDTO(list);
}
use of com.linkedin.thirdeye.datalayer.pojo.DataCompletenessConfigBean in project pinot by linkedin.
the class DataCompletenessConfigManagerImpl method findAllByDatasetAndInTimeRangeAndPercentCompleteGT.
@Override
public List<DataCompletenessConfigDTO> findAllByDatasetAndInTimeRangeAndPercentCompleteGT(String dataset, long startTime, long endTime, double percentComplete) {
Predicate timePredicate = Predicate.AND(Predicate.GE("dateToCheckInMS", startTime), Predicate.LT("dateToCheckInMS", endTime));
Predicate datasetPredicate = Predicate.EQ("dataset", dataset);
Predicate percentCompletePrediate = Predicate.GT("percentComplete", percentComplete);
List<DataCompletenessConfigBean> list = genericPojoDao.get(Predicate.AND(datasetPredicate, timePredicate, percentCompletePrediate), DataCompletenessConfigBean.class);
return convertListOfBeanToDTO(list);
}
use of com.linkedin.thirdeye.datalayer.pojo.DataCompletenessConfigBean in project pinot by linkedin.
the class DataCompletenessConfigManagerImpl method findAllByTimeOlderThanAndStatus.
@Override
public List<DataCompletenessConfigDTO> findAllByTimeOlderThanAndStatus(long time, boolean dataComplete) {
Predicate datePredicate = Predicate.LT("dateToCheckInMS", time);
Predicate dataCompletePredicate = Predicate.EQ("dataComplete", dataComplete);
List<DataCompletenessConfigBean> list = genericPojoDao.get(Predicate.AND(datePredicate, dataCompletePredicate), DataCompletenessConfigBean.class);
return convertListOfBeanToDTO(list);
}
use of com.linkedin.thirdeye.datalayer.pojo.DataCompletenessConfigBean in project pinot by linkedin.
the class DataCompletenessConfigManagerImpl method findAllByDataset.
@Override
public List<DataCompletenessConfigDTO> findAllByDataset(String dataset) {
Predicate predicate = Predicate.EQ("dataset", dataset);
List<DataCompletenessConfigBean> list = genericPojoDao.get(predicate, DataCompletenessConfigBean.class);
return convertListOfBeanToDTO(list);
}
Aggregations