Class SegmentReplicationStatus
- java.lang.Object
-
- org.apache.druid.server.coordinator.loading.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 theStrategicSegmentAssignerin every run.
-
-
Constructor Summary
Constructors Constructor Description SegmentReplicationStatus(Map<org.apache.druid.timeline.SegmentId,Map<String,SegmentReplicaCount>> replicaCountsInTier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SegmentReplicaCountgetReplicaCountsInCluster(org.apache.druid.timeline.SegmentId segmentId)Map<String,it.unimi.dsi.fastutil.objects.Object2LongMap<String>>getTierToDatasourceToUnderReplicated(Iterable<org.apache.druid.timeline.DataSegment> usedSegments, boolean ignoreMissingServers)
-
-
-
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)
-
-