PartitionsCount returns the number of partitions in the ring.
()
| 326 | |
| 327 | // PartitionsCount returns the number of partitions in the ring. |
| 328 | func (r *PartitionRing) PartitionsCount() int { |
| 329 | return len(r.desc.Partitions) |
| 330 | } |
| 331 | |
| 332 | // MaxPartitionID returns the highest partition ID in the ring, or -1 if there are no partitions. |
| 333 | func (r *PartitionRing) MaxPartitionID() int32 { |
no outgoing calls