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>
See
BucketNumberedShardSpec for how this class is used.
Calling convert(int) on an instance of this class creates a
BuildingSingleDimensionShardSpec if there is a single dimension
or BuildingDimensionRangeShardSpec 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, virtualColumns -
Constructor Summary
ConstructorsConstructorDescriptionDimensionRangeBucketShardSpec(int bucketId, List<String> dimensions, StringTuple start, StringTuple end) -
Method Summary
Methods inherited from class org.apache.druid.timeline.partition.BaseDimensionRangeShardSpec
getInputRowTuple, getLookupMethods 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
canCreateNumberedPartitionChunk, getAtomicUpdateGroupSize, getDomainVirtualColumns, getEndRootPartitionId, getLookup, getMinorVersion, getStartRootPartitionId, sharePartitionSpace, withCorePartitions, withPartitionNum
-
Constructor Details
-
DimensionRangeBucketShardSpec
public DimensionRangeBucketShardSpec(int bucketId, List<String> dimensions, @Nullable StringTuple start, @Nullable StringTuple end)
-
-
Method Details
-
getBucketId
public int getBucketId()- Specified by:
getBucketIdin interfaceBucketNumberedShardSpec<BuildingDimensionRangeShardSpec>
-
getDimensions
-
getStart
-
getEnd
-
convert
- Specified by:
convertin interfaceBucketNumberedShardSpec<BuildingDimensionRangeShardSpec>
-
getType
Description copied from interface:ShardSpecGet the type name of this ShardSpec. -
equals
-
hashCode
public int hashCode() -
toString
-