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>
SeeBuildingShardSpecfor 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 NumberedShardSpecconvert(int numTotalPartitions)<T> PartitionChunk<T>createChunk(T obj)booleanequals(Object o)intgetBucketId()intgetPartitionNum()Returns the partition ID of this segment.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
-
-
-
-
Method Detail
-
getBucketId
public int getBucketId()
- Specified by:
getBucketIdin interfaceBuildingShardSpec<NumberedShardSpec>
-
convert
public NumberedShardSpec convert(int numTotalPartitions)
- Specified by:
convertin interfaceBuildingShardSpec<NumberedShardSpec>
-
createChunk
public <T> PartitionChunk<T> createChunk(T obj)
- Specified by:
createChunkin interfaceShardSpec
-
getPartitionNum
public int getPartitionNum()
Description copied from interface:ShardSpecReturns the partition ID of this segment.- Specified by:
getPartitionNumin interfaceShardSpec
-
getType
public String getType()
Description copied from interface:ShardSpecGet the type name of this ShardSpec.
-
-