Class NumberedShardSpec

java.lang.Object
org.apache.druid.timeline.partition.NumberedShardSpec
All Implemented Interfaces:
ShardSpec
Direct Known Subclasses:
HashBasedNumberedShardSpec

public class NumberedShardSpec extends Object implements ShardSpec
An extendable linear shard spec containing the information of core partitions. This class contains two variables of partitionNum and partitions, which represent the unique id of a partition and the number of core partitions, respectively. partitions simply indicates that the atomic update is regarded as completed when partitions partitions are successfully updated, and partitionNum can go beyond it when some types of index tasks are trying to append to existing partitions.