Interface OverwriteShardSpec
- All Superinterfaces:
ShardSpec
- All Known Implementing Classes:
NumberedOverwriteShardSpec
ShardSpec for non-first-generation segments.
This shardSpec is created only by overwriting tasks using segment locks.
This shardSpec is allocated a partitionId between
PartitionIds.NON_ROOT_GEN_START_PARTITION_ID and
PartitionIds.NON_ROOT_GEN_END_PARTITION_ID.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.druid.timeline.partition.ShardSpec
ShardSpec.Type -
Method Summary
Modifier and TypeMethodDescriptiondefault intThe 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) withAtomicUpdateGroupSize(short atomicUpdateGroupSize) Methods inherited from interface org.apache.druid.timeline.partition.ShardSpec
canCreateNumberedPartitionChunk, createChunk, getAtomicUpdateGroupSize, getDomainDimensions, getDomainVirtualColumns, getEndRootPartitionId, getLookup, getMinorVersion, getPartitionNum, getStartRootPartitionId, getType, possibleInDomain, withCorePartitions, withPartitionNum
-
Method Details
-
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
-
withAtomicUpdateGroupSize
-