use of com.emc.storageos.db.client.constraint.TimeSeriesConstraint in project coprhd-controller by CoprHD.
the class BourneDbClient method findAllOrdersByTimeRange.
@Override
public List<NamedElement> findAllOrdersByTimeRange(URI tid, String columnField, Date startTime, Date endTime, int maxCount) throws DataAccessException {
LOG.debug("findAllOrdersByTimeRange(tid={} columnField={}, startTime={} endTime={} maxCount={})", new Object[] { tid, columnField, startTime, endTime, maxCount });
long startTimeInMS = startTime.getTime();
long endTimeInMS = endTime.getTime();
TimeSeriesConstraint constraint = TimeSeriesConstraint.Factory.getOrders(tid, startTimeInMS, endTimeInMS);
List<NamedElement> allOrderIds = queryNamedElementsByConstraint(constraint, maxCount);
return allOrderIds;
}
Aggregations