Interface OverwriteShardSpec

All Superinterfaces:
ShardSpec
All Known Implementing Classes:
NumberedOverwriteShardSpec

public interface OverwriteShardSpec extends ShardSpec
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:
  • Method Details

    • getNumCorePartitions

      default int getNumCorePartitions()
      The core partition concept is not used with segment locking. Instead, the AtomicUpdateGroup is used to atomically overshadow segments. Here, we always return 0 so that the PartitionHolder skips checking the completeness of the core partitions.
      Specified by:
      getNumCorePartitions in interface ShardSpec
    • withAtomicUpdateGroupSize

      default OverwriteShardSpec withAtomicUpdateGroupSize(int atomicUpdateGroupSize)
    • withAtomicUpdateGroupSize

      OverwriteShardSpec withAtomicUpdateGroupSize(short atomicUpdateGroupSize)
    • sharePartitionSpace

      default boolean sharePartitionSpace(PartialShardSpec partialShardSpec)
      Returns true if this shardSpec and the given PartialShardSpec 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 interface ShardSpec
      See Also: