You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: server/src/main/java/org/opensearch/search/aggregations/bucket/composite/CompositeValuesCollectorQueue.java
+17-2Lines changed: 17 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,11 @@ private class Slot {
60
60
this.value = initial;
61
61
}
62
62
63
+
// This is to be only for reusable slot
64
+
publicvoidset(intnewValue) {
65
+
this.value = newValue;
66
+
}
67
+
63
68
@Override
64
69
publicbooleanequals(Objecto) {
65
70
if (this == o) returntrue;
@@ -82,6 +87,14 @@ public int hashCode() {
82
87
privatefinalMap<Slot, Integer> map; // to quickly find the slot for a value
0 commit comments