Class LinearPartialShardSpec
java.lang.Object
org.apache.druid.timeline.partition.LinearPartialShardSpec
- All Implemented Interfaces:
PartialShardSpec
-
Method Summary
Modifier and TypeMethodDescriptioncomplete(com.fasterxml.jackson.databind.ObjectMapper objectMapper, int partitionId, int numCorePartitions) Creates a new ShardSpec with given partitionId and numCorePartitions.Returns the class of the shardSpec created by this factory.static LinearPartialShardSpecinstance()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.druid.timeline.partition.PartialShardSpec
useNonRootGenerationPartitionSpace
-
Method Details
-
instance
-
complete
public ShardSpec complete(com.fasterxml.jackson.databind.ObjectMapper objectMapper, int partitionId, int numCorePartitions) Description copied from interface:PartialShardSpecCreates a new ShardSpec with given partitionId and numCorePartitions.- Specified by:
completein interfacePartialShardSpec- Parameters:
objectMapper- jsonMapper used only forHashBasedNumberedShardSpecpartitionId- partitionId of the shardSpec. must be carefully chosen to be unique in a time chunknumCorePartitions- the core partition set size. Should be set properly to determine if this segment belongs to the core partitions.
-
getShardSpecClass
Description copied from interface:PartialShardSpecReturns the class of the shardSpec created by this factory.- Specified by:
getShardSpecClassin interfacePartialShardSpec
-