Package org.apache.druid.timeline
Class SegmentStatusInCluster
java.lang.Object
org.apache.druid.timeline.SegmentStatusInCluster
- All Implemented Interfaces:
Comparable<SegmentStatusInCluster>
This class represents the current state of a segment in the cluster and encapsulates the following:
Objects of this class are used to sync the state of segments from the Coordinator to different services, typically the Broker. The
- the
DataSegmentobject - 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 Summary
ConstructorsConstructorDescriptionSegmentStatusInCluster(boolean overshadowed, Integer replicationFactor, Long numRows, boolean realtime) SegmentStatusInCluster(DataSegment dataSegment, boolean overshadowed, Integer replicationFactor, Long numRows, boolean realtime) -
Method Summary
-
Constructor Details
-
SegmentStatusInCluster
-
SegmentStatusInCluster
public SegmentStatusInCluster(DataSegment dataSegment, boolean overshadowed, Integer replicationFactor, Long numRows, boolean realtime)
-
-
Method Details
-
isOvershadowed
public boolean isOvershadowed() -
getDataSegment
-
getReplicationFactor
-
getNumRows
-
isRealtime
public boolean isRealtime() -
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<SegmentStatusInCluster>
-
toString
-