Class SegmentCreateRequest
java.lang.Object
org.apache.druid.indexing.overlord.SegmentCreateRequest
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 Summary
ConstructorsConstructorDescriptionSegmentCreateRequest(String sequenceName, String previousSegmentId, String version, PartialShardSpec partialShardSpec, String taskAllocatorId) -
Method Summary
Modifier and TypeMethodDescriptionPrevious segment id allocated for this sequence.Represents group of ingestion tasks that produce a segment series.Version of the lock held by the task that has requested the segment allocation.
-
Constructor Details
-
SegmentCreateRequest
public SegmentCreateRequest(String sequenceName, String previousSegmentId, String version, PartialShardSpec partialShardSpec, String taskAllocatorId)
-
-
Method Details
-
getSequenceName
Represents group of ingestion tasks that produce a segment series. -
getPreviousSegmentId
Previous segment id allocated for this sequence.- Returns:
- Empty string if there is no previous segment in the series.
-
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
-
getTaskAllocatorId
-