public class SlotRange
extends Object
A node can contain multiple SlotRange which is the result of re-sharding the cluster
This class is aimed to contain the minimum and maximum slot number for such a slot range
Field Summary
Fields
int
Ending slot number of this range
int
Starting slot number of this range
Constructor Summary
Constructors
Parse the slot range from String value and assign it to
minSlot and
maxSlot parameter
Method Summary
All Methods Instance Methods Concrete Methods
Field Details
minSlot
public int minSlot
Starting slot number of this range
maxSlot
public int maxSlot
Ending slot number of this range
Constructor Details
SlotRange
Parse the slot range from String value and assign it to
minSlot and
maxSlot parameter
Parameters:
str - is the String range in format 'minSlot -maxSlot '