mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-18 10:54:54 +00:00
Fix centroids equality tests in TDigestState#equals
This commit is contained in:
parent
5a668c4add
commit
22870cc6c0
@ -116,9 +116,4 @@ public class InternalTDigestPercentileRanks extends AbstractInternalTDigestPerce
|
|||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
protected boolean doEquals(Object obj) {
|
|
||||||
return super.doEquals(obj);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -72,7 +72,7 @@ public class TDigestState extends AVLTreeDigest {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Iterator<? extends Centroid> thisCentroids = centroids().iterator();
|
Iterator<? extends Centroid> thisCentroids = centroids().iterator();
|
||||||
Iterator<? extends Centroid> thatCentroids = centroids().iterator();
|
Iterator<? extends Centroid> thatCentroids = that.centroids().iterator();
|
||||||
while (thisCentroids.hasNext()) {
|
while (thisCentroids.hasNext()) {
|
||||||
if (thatCentroids.hasNext() == false) {
|
if (thatCentroids.hasNext() == false) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user