} while (calendar.getTimeInMillis() < t1);
} catch (Exception e) {
e.printStackTrace();
throw new DataSourceException(e);
}
TreeMap<Long, List<Record>> recordsInResult = result.getRecords();
for (Record record : records) {
long timestamp = record.getTime();