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>
See
BuildingShardSpec for how this class is used.
This shardSpec has only partitionId which is same as LinearShardSpec. 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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.druid.timeline.partition.ShardSpec
ShardSpec.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert(int numTotalPartitions) <T> PartitionChunk<T> createChunk(T obj) booleanintintReturns the partition ID of this segment.getType()Get the type name of this ShardSpec.inthashCode()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.druid.timeline.partition.BuildingShardSpec
getDomainDimensions, getLookup, getNumCorePartitions, possibleInDomainMethods inherited from interface org.apache.druid.timeline.partition.ShardSpec
getAtomicUpdateGroupSize, getEndRootPartitionId, getMinorVersion, getStartRootPartitionId, sharePartitionSpace
-
Constructor Details
-
BuildingNumberedShardSpec
public BuildingNumberedShardSpec(int partitionId)
-
-
Method Details
-
getBucketId
public int getBucketId()- Specified by:
getBucketIdin interfaceBuildingShardSpec<NumberedShardSpec>
-
convert
- Specified by:
convertin interfaceBuildingShardSpec<NumberedShardSpec>
-
createChunk
- Specified by:
createChunkin interfaceShardSpec
-
getPartitionNum
public int getPartitionNum()Description copied from interface:ShardSpecReturns the partition ID of this segment.- Specified by:
getPartitionNumin interfaceShardSpec
-
getType
Description copied from interface:ShardSpecGet the type name of this ShardSpec. -
equals
-
hashCode
public int hashCode() -
toString
-