IArchiveReader iar = archiveFactory.getReader(inTimeFrame);
for (String value : fields) {
TSContainer container = iar.getTimeSeries(mdiId, value, startTS, stopTS);
TimeSeriesIterator iterator = iar.getTimeSeriesStream(mdiId, value, startTS, stopTS);
while (iterator.hasNext()) {
Tuple<TimeStamp, Double> val = iterator.next();
System.out.println(val.getA().getNanoseconds() + "," + val.getB());
}
}
//
}