Class 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 Detail

      • SegmentCreateRequest

        public SegmentCreateRequest​(String sequenceName,
                                    String previousSegmentId,
                                    String version,
                                    org.apache.druid.timeline.partition.PartialShardSpec partialShardSpec)
    • Method Detail

      • getSequenceName

        public String getSequenceName()
      • getPreviousSegmentId

        public String getPreviousSegmentId()
        Non-null previous segment id. This can be used for persisting to the pending segments table in the metadata store.
      • getVersion

        public String getVersion()
      • getPartialShardSpec

        public org.apache.druid.timeline.partition.PartialShardSpec getPartialShardSpec()