Interface OverwriteShardSpec

    • Method Detail

      • 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 returns 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:
        PartitionIds