Package com.couchbase.client.dcp.util
Class PartitionSet
java.lang.Object
com.couchbase.client.dcp.util.PartitionSet
A set of partition IDs, printable in a compact human-readable form suitable for logging.
For example, if a bucket has 1024 partitions, the set of all partitions is represented as:
0..1023Both endpoints are inclusive.
If a set contains multiple ranges, the ranges are delimited by semicolons. For example, here's the set of partitions 0,1,2,7,8,9:
0..2;7..9Range syntax is used only when there are 3 or more contiguous elements. For two or fewer contiguous elements, partitions are listed independently. For example, here's the set of partitions 0,1,8,9:
0;1;8;9
-
Method Summary
Modifier and TypeMethodDescriptionstatic PartitionSet
allPartitions
(int numPartitions) boolean
format()
static PartitionSet
from
(Collection<Integer> values) int
hashCode()
static PartitionSet
toList()
toSet()
toString()