Class HashBucketShardSpec
java.lang.Object
org.apache.druid.timeline.partition.HashBucketShardSpec
- All Implemented Interfaces:
BucketNumberedShardSpec<BuildingHashBasedNumberedShardSpec>,ShardSpec
public class HashBucketShardSpec
extends Object
implements BucketNumberedShardSpec<BuildingHashBasedNumberedShardSpec>
See
BucketNumberedShardSpec for how this class is used.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.druid.timeline.partition.ShardSpec
ShardSpec.Type -
Constructor Summary
ConstructorsConstructorDescriptionHashBucketShardSpec(int bucketId, int numBuckets, List<String> partitionDimensions, HashPartitionFunction partitionFunction, com.fasterxml.jackson.databind.ObjectMapper jsonMapper) -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.druid.timeline.partition.BucketNumberedShardSpec
createChunk, getDomainDimensions, getNumCorePartitions, getPartitionNum, possibleInDomainMethods inherited from interface org.apache.druid.timeline.partition.ShardSpec
getAtomicUpdateGroupSize, getEndRootPartitionId, getMinorVersion, getStartRootPartitionId, sharePartitionSpace
-
Constructor Details
-
HashBucketShardSpec
public HashBucketShardSpec(int bucketId, int numBuckets, List<String> partitionDimensions, HashPartitionFunction partitionFunction, com.fasterxml.jackson.databind.ObjectMapper jsonMapper)
-
-
Method Details
-
getBucketId
public int getBucketId()- Specified by:
getBucketIdin interfaceBucketNumberedShardSpec<BuildingHashBasedNumberedShardSpec>
-
getNumBuckets
public int getNumBuckets() -
getPartitionDimensions
-
getPartitionFunction
-
convert
- Specified by:
convertin interfaceBucketNumberedShardSpec<BuildingHashBasedNumberedShardSpec>
-
getLookup
-
getType
Description copied from interface:ShardSpecGet the type name of this ShardSpec. -
equals
-
hashCode
public int hashCode() -
toString
-