public class HashRingEntry
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
HashRingEntry |
neighbor
Next neighboring node in the hash space
|
java.math.BigInteger |
position
Position in the hash space
|
Constructor and Description |
---|
HashRingEntry(java.math.BigInteger position)
Creates the first entry in a hash ring (neighbor is self).
|
HashRingEntry(java.math.BigInteger position,
HashRingEntry neighbor)
Creates a hash ring entry with a provided position and neighbor.
|
public java.math.BigInteger position
public HashRingEntry neighbor
public HashRingEntry(java.math.BigInteger position)
position
- the position of the entry in the hash spacepublic HashRingEntry(java.math.BigInteger position, HashRingEntry neighbor)
position
- the position of the entry in the hash spaceneighbor
- neighboring entry (based on position) in the hash
space.