Class DifferenceHolder
- java.lang.Object
-
- org.apache.cassandra.repair.asymmetric.DifferenceHolder
-
public class DifferenceHolder extends java.lang.Object
Just holds all differences between the hosts involved in a repair
-
-
Constructor Summary
Constructors Constructor Description DifferenceHolder(java.util.List<TreeResponse> trees)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HostDifferences
get(InetAddressAndPort hostWithDifference)
boolean
hasDifferenceBetween(InetAddressAndPort node1, InetAddressAndPort node2, Range<Token> range)
java.util.Set<InetAddressAndPort>
keyHosts()
differences only holds one 'side' of the difference - if A and B mismatch, only A will be a key in the mapjava.lang.String
toString()
-
-
-
Constructor Detail
-
DifferenceHolder
public DifferenceHolder(java.util.List<TreeResponse> trees)
-
-
Method Detail
-
keyHosts
public java.util.Set<InetAddressAndPort> keyHosts()
differences only holds one 'side' of the difference - if A and B mismatch, only A will be a key in the map
-
get
public HostDifferences get(InetAddressAndPort hostWithDifference)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hasDifferenceBetween
public boolean hasDifferenceBetween(InetAddressAndPort node1, InetAddressAndPort node2, Range<Token> range)
-
-