Class SingleDimensionPartialShardSpec
- java.lang.Object
-
- org.apache.druid.timeline.partition.SingleDimensionPartialShardSpec
-
- All Implemented Interfaces:
PartialShardSpec
public class SingleDimensionPartialShardSpec extends Object implements PartialShardSpec
-
-
Constructor Summary
Constructors Constructor Description SingleDimensionPartialShardSpec(String partitionDimension, int bucketId, String start, String end, int numBuckets)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShardSpec
complete(com.fasterxml.jackson.databind.ObjectMapper objectMapper, int partitionId, int numCorePartitions)
Creates a new ShardSpec with given partitionId and numCorePartitions.boolean
equals(Object o)
int
getBucketId()
String
getEnd()
int
getNumBuckets()
String
getPartitionDimension()
Class<? extends ShardSpec>
getShardSpecClass()
Returns the class of the shardSpec created by this factory.String
getStart()
int
hashCode()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.druid.timeline.partition.PartialShardSpec
useNonRootGenerationPartitionSpace
-
-
-
-
Method Detail
-
getPartitionDimension
public String getPartitionDimension()
-
getBucketId
public int getBucketId()
-
getNumBuckets
public int getNumBuckets()
-
complete
public ShardSpec complete(com.fasterxml.jackson.databind.ObjectMapper objectMapper, int partitionId, int numCorePartitions)
Description copied from interface:PartialShardSpec
Creates a new ShardSpec with given partitionId and numCorePartitions.- Specified by:
complete
in interfacePartialShardSpec
- Parameters:
objectMapper
- jsonMapper used only forHashBasedNumberedShardSpec
partitionId
- 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
public Class<? extends ShardSpec> getShardSpecClass()
Description copied from interface:PartialShardSpec
Returns the class of the shardSpec created by this factory.- Specified by:
getShardSpecClass
in interfacePartialShardSpec
-
-