Class BuildingNumberedShardSpec
- java.lang.Object
-
- org.apache.druid.timeline.partition.BuildingNumberedShardSpec
-
- All Implemented Interfaces:
BuildingShardSpec<NumberedShardSpec>
,ShardSpec
public class BuildingNumberedShardSpec extends Object implements BuildingShardSpec<NumberedShardSpec>
SeeBuildingShardSpec
for how this class is used. This shardSpec has only partitionId which is same asLinearShardSpec
. The difference between them is this shardSpec should never be published and so never be used in other places such as Broker timeline.- See Also:
NumberedShardSpec
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.druid.timeline.partition.ShardSpec
ShardSpec.Type
-
-
Constructor Summary
Constructors Constructor Description BuildingNumberedShardSpec(int partitionId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NumberedShardSpec
convert(int numTotalPartitions)
<T> PartitionChunk<T>
createChunk(T obj)
boolean
equals(Object o)
int
getBucketId()
int
getPartitionNum()
Returns the partition ID of this segment.String
getType()
Get the type name of this ShardSpec.int
hashCode()
String
toString()
-
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
-
-
-
-
Method Detail
-
getBucketId
public int getBucketId()
- Specified by:
getBucketId
in interfaceBuildingShardSpec<NumberedShardSpec>
-
convert
public NumberedShardSpec convert(int numTotalPartitions)
- Specified by:
convert
in interfaceBuildingShardSpec<NumberedShardSpec>
-
createChunk
public <T> PartitionChunk<T> createChunk(T obj)
- Specified by:
createChunk
in interfaceShardSpec
-
getPartitionNum
public int getPartitionNum()
Description copied from interface:ShardSpec
Returns the partition ID of this segment.- Specified by:
getPartitionNum
in interfaceShardSpec
-
getType
public String getType()
Description copied from interface:ShardSpec
Get the type name of this ShardSpec.
-
-