Class SingleDimensionPartialShardSpec
java.lang.Object
org.apache.druid.timeline.partition.SingleDimensionPartialShardSpec
- All Implemented Interfaces:
PartialShardSpec
-
Constructor Summary
ConstructorsConstructorDescriptionSingleDimensionPartialShardSpec(String partitionDimension, int bucketId, String start, String end, int numBuckets) -
Method Summary
Modifier and TypeMethodDescriptioncomplete(com.fasterxml.jackson.databind.ObjectMapper objectMapper, int partitionId, int numCorePartitions) Creates a new ShardSpec with given partitionId and numCorePartitions.booleanintgetEnd()intReturns the class of the shardSpec created by this factory.getStart()inthashCode()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.druid.timeline.partition.PartialShardSpec
useNonRootGenerationPartitionSpace
-
Constructor Details
-
SingleDimensionPartialShardSpec
-
-
Method Details
-
getPartitionDimension
-
getBucketId
public int getBucketId() -
getStart
-
getEnd
-
getNumBuckets
public int getNumBuckets() -
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
-
equals
-
hashCode
public int hashCode()
-