Class SingleDimensionPartialShardSpec

java.lang.Object
org.apache.druid.timeline.partition.SingleDimensionPartialShardSpec
All Implemented Interfaces:
PartialShardSpec

public class SingleDimensionPartialShardSpec extends Object implements PartialShardSpec
  • Constructor Details

    • SingleDimensionPartialShardSpec

      public SingleDimensionPartialShardSpec(String partitionDimension, int bucketId, @Nullable String start, @Nullable String end, int numBuckets)
  • Method Details

    • getPartitionDimension

      public String getPartitionDimension()
    • getBucketId

      public int getBucketId()
    • getStart

      @Nullable public String getStart()
    • getEnd

      @Nullable public String getEnd()
    • 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 interface PartialShardSpec
      Parameters:
      objectMapper - jsonMapper used only for HashBasedNumberedShardSpec
      partitionId - partitionId of the shardSpec. must be carefully chosen to be unique in a time chunk
      numCorePartitions - 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 interface PartialShardSpec
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object