Class PartitionSet

java.lang.Object
com.couchbase.client.dcp.util.PartitionSet

public final class PartitionSet extends Object
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..1023
 
Both 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..9
 
Range 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