Package org.apache.pulsar.common.naming
Class RangeEquallyDivideBundleSplitAlgorithm
- java.lang.Object
-
- org.apache.pulsar.common.naming.RangeEquallyDivideBundleSplitAlgorithm
-
- All Implemented Interfaces:
NamespaceBundleSplitAlgorithm
public class RangeEquallyDivideBundleSplitAlgorithm extends java.lang.Object implements NamespaceBundleSplitAlgorithm
This algorithm divides the bundle into two parts with the same hash range size.
-
-
Field Summary
-
Fields inherited from interface org.apache.pulsar.common.naming.NamespaceBundleSplitAlgorithm
AVAILABLE_ALGORITHMS, RANGE_EQUALLY_DIVIDE_ALGO, RANGE_EQUALLY_DIVIDE_NAME, TOPIC_COUNT_EQUALLY_DIVIDE, TOPIC_COUNT_EQUALLY_DIVIDE_ALGO
-
-
Constructor Summary
Constructors Constructor Description RangeEquallyDivideBundleSplitAlgorithm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<java.lang.Long>getSplitBoundary(NamespaceService service, NamespaceBundle bundle)
-
-
-
Method Detail
-
getSplitBoundary
public java.util.concurrent.CompletableFuture<java.lang.Long> getSplitBoundary(NamespaceService service, NamespaceBundle bundle)
- Specified by:
getSplitBoundaryin interfaceNamespaceBundleSplitAlgorithm
-
-