use of com.linkedin.thirdeye.datalayer.dto.EventDTO in project pinot by linkedin.
the class EventManagerImpl method findByEventType.
public List<EventDTO> findByEventType(String eventType) {
Predicate predicate = Predicate.EQ("eventType", eventType);
List<EventBean> list = genericPojoDao.get(predicate, EventBean.class);
List<EventDTO> results = new ArrayList<>();
for (EventBean event : list) {
EventDTO eventDTO = MODEL_MAPPER.map(event, EventDTO.class);
results.add(eventDTO);
}
return results;
}
Aggregations