Class SegmentCreateRequest

java.lang.Object
org.apache.druid.indexing.overlord.SegmentCreateRequest

public class SegmentCreateRequest extends Object
Contains information used by IndexerMetadataStorageCoordinator for creating a new segment.

The sequenceName and previousSegmentId fields are meant to make it easy for two independent ingestion tasks to produce the same series of segments.

  • Constructor Details

  • Method Details

    • getSequenceName

      public String getSequenceName()
      Represents group of ingestion tasks that produce a segment series.
    • getPreviousSegmentId

      public String getPreviousSegmentId()
      Previous segment id allocated for this sequence.
      Returns:
      Empty string if there is no previous segment in the series.
    • getVersion

      public String getVersion()
      Version of the lock held by the task that has requested the segment allocation. The allocated segment must have a version less than or equal to this version.
    • getPartialShardSpec

      public PartialShardSpec getPartialShardSpec()
    • getTaskAllocatorId

      public String getTaskAllocatorId()