fix metric list discovery
This commit is contained in:
nishantmonu51 2014-09-16 22:12:36 +05:30
parent a73670ee7b
commit f006de8639
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ public class IngestSegmentFirehoseFactory implements FirehoseFactory<InputRowPar
} else { } else {
Set<String> metricsSet = new HashSet<>(); Set<String> metricsSet = new HashSet<>();
for (TimelineObjectHolder<String, DataSegment> timelineObjectHolder : timeLineSegments) { for (TimelineObjectHolder<String, DataSegment> timelineObjectHolder : timeLineSegments) {
metricsSet.addAll(timelineObjectHolder.getObject().getChunk(0).getObject().getDimensions()); metricsSet.addAll(timelineObjectHolder.getObject().getChunk(0).getObject().getMetrics());
} }
metricsList = Lists.newArrayList(metricsSet); metricsList = Lists.newArrayList(metricsSet);
} }