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_ID
andPartitionIds.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 int
getNumCorePartitions()
The core partition concept is not used with segment locking.default boolean
sharePartitionSpace(PartialShardSpec partialShardSpec)
Returns true if this shardSpec and the givenPartialShardSpec
share the same partition space.default OverwriteShardSpec
withAtomicUpdateGroupSize(int atomicUpdateGroupSize)
OverwriteShardSpec
withAtomicUpdateGroupSize(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, theAtomicUpdateGroup
is used to atomically overshadow segments. Here, we always returns 0 so that thePartitionHolder
skips checking the completeness of the core partitions.- Specified by:
getNumCorePartitions
in 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 givenPartialShardSpec
share the same partition space. This shardSpec uses non-root-generation partition space and thus does not share the space with other shardSpecs.- Specified by:
sharePartitionSpace
in interfaceShardSpec
- See Also:
PartitionIds
-
-