use of org.apache.druid.client.selector.TierSelectorStrategy in project druid by druid-io.
the class SimpleServerView method addSegmentToServer.
private void addSegmentToServer(DruidServer server, DataSegment segment) {
final ServerSelector selector = selectors.computeIfAbsent(segment.getId().toString(), k -> new ServerSelector(segment, tierSelectorStrategy));
selector.addServerAndUpdateSegment(servers.get(server), segment);
timelines.computeIfAbsent(segment.getDataSource(), k -> new VersionedIntervalTimeline<>(Ordering.natural())).add(segment.getInterval(), segment.getVersion(), segment.getShardSpec().createChunk(selector));
}
Aggregations