Class DimensionRangeBucketShardSpec
- java.lang.Object
-
- org.apache.druid.timeline.partition.BaseDimensionRangeShardSpec
-
- org.apache.druid.timeline.partition.DimensionRangeBucketShardSpec
-
- All Implemented Interfaces:
BucketNumberedShardSpec<BuildingDimensionRangeShardSpec>
,ShardSpec
public class DimensionRangeBucketShardSpec extends BaseDimensionRangeShardSpec implements BucketNumberedShardSpec<BuildingDimensionRangeShardSpec>
SeeBucketNumberedShardSpec
for how this class is used.Calling
convert(int)
on an instance of this class creates aBuildingSingleDimensionShardSpec
if there is a single dimension orBuildingDimensionRangeShardSpec
if there are multiple dimensions.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.druid.timeline.partition.ShardSpec
ShardSpec.Type
-
-
Field Summary
-
Fields inherited from class org.apache.druid.timeline.partition.BaseDimensionRangeShardSpec
dimensions, end, start
-
-
Constructor Summary
Constructors Constructor Description DimensionRangeBucketShardSpec(int bucketId, List<String> dimensions, StringTuple start, StringTuple end)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BuildingDimensionRangeShardSpec
convert(int partitionId)
boolean
equals(Object o)
int
getBucketId()
List<String>
getDimensions()
StringTuple
getEnd()
StringTuple
getStart()
String
getType()
Get the type name of this ShardSpec.int
hashCode()
String
toString()
-
Methods inherited from class org.apache.druid.timeline.partition.BaseDimensionRangeShardSpec
getInputRowTuple, getLookup
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.druid.timeline.partition.BucketNumberedShardSpec
createChunk, getDomainDimensions, getNumCorePartitions, getPartitionNum, possibleInDomain
-
Methods inherited from interface org.apache.druid.timeline.partition.ShardSpec
getAtomicUpdateGroupSize, getEndRootPartitionId, getLookup, getMinorVersion, getStartRootPartitionId, sharePartitionSpace
-
-
-
-
Constructor Detail
-
DimensionRangeBucketShardSpec
public DimensionRangeBucketShardSpec(int bucketId, List<String> dimensions, @Nullable StringTuple start, @Nullable StringTuple end)
-
-
Method Detail
-
getBucketId
public int getBucketId()
- Specified by:
getBucketId
in interfaceBucketNumberedShardSpec<BuildingDimensionRangeShardSpec>
-
getStart
@Nullable public StringTuple getStart()
-
getEnd
@Nullable public StringTuple getEnd()
-
convert
public BuildingDimensionRangeShardSpec convert(int partitionId)
- Specified by:
convert
in interfaceBucketNumberedShardSpec<BuildingDimensionRangeShardSpec>
-
getType
public String getType()
Description copied from interface:ShardSpec
Get the type name of this ShardSpec.
-
-