Class SegmentReplicationStatus


  • public class SegmentReplicationStatus
    extends Object
    An immutable object that contains information about the under-replicated or unavailable status of all used segments. This state is recomputed by the StrategicSegmentAssigner in every run.
    • Constructor Detail

      • SegmentReplicationStatus

        public SegmentReplicationStatus​(Map<org.apache.druid.timeline.SegmentId,​Map<String,​SegmentReplicaCount>> replicaCountsInTier)
    • Method Detail

      • getReplicaCountsInCluster

        public SegmentReplicaCount getReplicaCountsInCluster​(org.apache.druid.timeline.SegmentId segmentId)
      • getTierToDatasourceToUnderReplicated

        public Map<String,​it.unimi.dsi.fastutil.objects.Object2LongMap<String>> getTierToDatasourceToUnderReplicated​(Iterable<org.apache.druid.timeline.DataSegment> usedSegments,
                                                                                                                           boolean ignoreMissingServers)