Class SegmentStatusInCluster

java.lang.Object
org.apache.druid.timeline.SegmentStatusInCluster
All Implemented Interfaces:
Comparable<SegmentStatusInCluster>

public class SegmentStatusInCluster extends Object implements Comparable<SegmentStatusInCluster>
This class represents the current state of a segment in the cluster and encapsulates the following:
  • the DataSegment object
  • overshadowed status of the segment
  • replication factor of the segment
  • number of rows in the segment
  • if the segment is realtime


Objects of this class are used to sync the state of segments from the Coordinator to different services, typically the Broker. The compareTo(org.apache.druid.timeline.SegmentStatusInCluster) method considers only the SegmentId.
  • Constructor Details

    • SegmentStatusInCluster

      public SegmentStatusInCluster(boolean overshadowed, @Nullable Integer replicationFactor, @Nullable Long numRows, boolean realtime)
    • SegmentStatusInCluster

      public SegmentStatusInCluster(DataSegment dataSegment, boolean overshadowed, Integer replicationFactor, Long numRows, boolean realtime)
  • Method Details