Class CompactionCandidate
java.lang.Object
org.apache.druid.server.compaction.CompactionCandidate
Non-empty list of segments of a datasource being considered for compaction.
A candidate typically contains all the segments of a single time chunk.
-
Method Summary
Modifier and TypeMethodDescriptionstatic CompactionCandidatefrom(List<DataSegment> segments) Current compaction status of the time chunk corresponding to this candidate.getStats()longorg.joda.time.IntervalUmbrella interval of all the segments in this candidate.inttoString()withCurrentStatus(CompactionStatus status) Creates a copy of this CompactionCandidate object with the given status.
-
Method Details
-
from
-
getSegments
- Returns:
- Non-empty list of segments that make up this candidate.
-
getTotalBytes
public long getTotalBytes() -
numSegments
public int numSegments() -
getUmbrellaInterval
public org.joda.time.Interval getUmbrellaInterval()Umbrella interval of all the segments in this candidate. This typically corresponds to a single time chunk in the segment timeline. -
getDataSource
-
getStats
-
getCurrentStatus
Current compaction status of the time chunk corresponding to this candidate. -
withCurrentStatus
Creates a copy of this CompactionCandidate object with the given status. -
toString
-