use of org.apache.druid.data.input.StringTuple in project druid by druid-io.
the class RangePartitionMultiPhaseParallelIndexingTest method assertRangePartitions.
private void assertRangePartitions(Set<DataSegment> publishedSegments) throws IOException {
Multimap<Interval, DataSegment> intervalToSegments = ArrayListMultimap.create();
publishedSegments.forEach(s -> intervalToSegments.put(s.getInterval(), s));
Set<Interval> publishedIntervals = intervalToSegments.keySet();
assertHasExpectedIntervals(publishedIntervals);
File tempSegmentDir = temporaryFolder.newFolder();
intervalToSegments.asMap().forEach((interval, segments) -> {
assertNumPartition(segments);
List<StringTuple> allValues = new ArrayList<>(NUM_ROW);
for (DataSegment segment : segments) {
List<StringTuple> values = getColumnValues(segment, tempSegmentDir);
assertValuesInRange(values, segment);
allValues.addAll(values);
}
assertIntervalHasAllExpectedValues(interval, allValues);
});
}
Aggregations