Class BuildingDimensionRangeShardSpec
- java.lang.Object
-
- org.apache.druid.timeline.partition.BuildingDimensionRangeShardSpec
-
- All Implemented Interfaces:
BuildingShardSpec<DimensionRangeShardSpec>,ShardSpec
- Direct Known Subclasses:
BuildingSingleDimensionShardSpec
public class BuildingDimensionRangeShardSpec extends Object implements BuildingShardSpec<DimensionRangeShardSpec>
SeeBuildingShardSpecfor how this class is used.Calling
convert(int)on an instance of this class creates aSingleDimensionShardSpecif there is a single dimension or aDimensionRangeShardSpecif there are multiple dimensions.- See Also:
SingleDimensionShardSpec,DimensionRangeShardSpec
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.druid.timeline.partition.ShardSpec
ShardSpec.Type
-
-
Constructor Summary
Constructors Constructor Description BuildingDimensionRangeShardSpec(int bucketId, List<String> dimensions, StringTuple start, StringTuple end, int partitionNum)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DimensionRangeShardSpecconvert(int numCorePartitions)<T> PartitionChunk<T>createChunk(T obj)booleanequals(Object o)intgetBucketId()List<String>getDimensions()StringTuplegetEndTuple()intgetPartitionNum()Returns the partition ID of this segment.StringTuplegetStartTuple()StringgetType()Get the type name of this ShardSpec.inthashCode()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.druid.timeline.partition.BuildingShardSpec
getDomainDimensions, getLookup, getNumCorePartitions, possibleInDomain
-
Methods inherited from interface org.apache.druid.timeline.partition.ShardSpec
getAtomicUpdateGroupSize, getEndRootPartitionId, getMinorVersion, getStartRootPartitionId, sharePartitionSpace
-
-
-
-
Constructor Detail
-
BuildingDimensionRangeShardSpec
public BuildingDimensionRangeShardSpec(int bucketId, List<String> dimensions, @Nullable StringTuple start, @Nullable StringTuple end, int partitionNum)
-
-
Method Detail
-
getStartTuple
@Nullable public StringTuple getStartTuple()
-
getEndTuple
@Nullable public StringTuple getEndTuple()
-
getPartitionNum
public int getPartitionNum()
Description copied from interface:ShardSpecReturns the partition ID of this segment.- Specified by:
getPartitionNumin interfaceShardSpec
-
getBucketId
public int getBucketId()
- Specified by:
getBucketIdin interfaceBuildingShardSpec<DimensionRangeShardSpec>
-
convert
public DimensionRangeShardSpec convert(int numCorePartitions)
- Specified by:
convertin interfaceBuildingShardSpec<DimensionRangeShardSpec>
-
createChunk
public <T> PartitionChunk<T> createChunk(T obj)
- Specified by:
createChunkin interfaceShardSpec
-
getType
public String getType()
Description copied from interface:ShardSpecGet the type name of this ShardSpec.
-
-