Interface OverwriteShardSpec
-
- All Superinterfaces:
ShardSpec
- All Known Implementing Classes:
NumberedOverwriteShardSpec
public interface OverwriteShardSpec extends ShardSpec
ShardSpec for non-first-generation segments. This shardSpec is allocated a partitionId betweenPartitionIds.NON_ROOT_GEN_START_PARTITION_IDandPartitionIds.NON_ROOT_GEN_END_PARTITION_ID.- See Also:
Overshadowable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.druid.timeline.partition.ShardSpec
ShardSpec.Type
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default intgetNumCorePartitions()The core partition concept is not used with segment locking.default booleansharePartitionSpace(PartialShardSpec partialShardSpec)Returns true if this shardSpec and the givenPartialShardSpecshare the same partition space.default OverwriteShardSpecwithAtomicUpdateGroupSize(int atomicUpdateGroupSize)OverwriteShardSpecwithAtomicUpdateGroupSize(short atomicUpdateGroupSize)-
Methods inherited from interface org.apache.druid.timeline.partition.ShardSpec
createChunk, getAtomicUpdateGroupSize, getDomainDimensions, getEndRootPartitionId, getLookup, getMinorVersion, getPartitionNum, getStartRootPartitionId, getType, possibleInDomain
-
-
-
-
Method Detail
-
getNumCorePartitions
default int getNumCorePartitions()
The core partition concept is not used with segment locking. Instead, theAtomicUpdateGroupis used to atomically overshadow segments. Here, we always return 0 so that thePartitionHolderskips checking the completeness of the core partitions.- Specified by:
getNumCorePartitionsin interfaceShardSpec
-
withAtomicUpdateGroupSize
default OverwriteShardSpec withAtomicUpdateGroupSize(int atomicUpdateGroupSize)
-
withAtomicUpdateGroupSize
OverwriteShardSpec withAtomicUpdateGroupSize(short atomicUpdateGroupSize)
-
sharePartitionSpace
default boolean sharePartitionSpace(PartialShardSpec partialShardSpec)
Returns true if this shardSpec and the givenPartialShardSpecshare the same partition space. This shardSpec uses non-root-generation partition space and thus does not share the space with other shardSpecs.- Specified by:
sharePartitionSpacein interfaceShardSpec- See Also:
PartitionIds
-
-