We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0bdf15 commit 86da7fdCopy full SHA for 86da7fd
server/src/main/java/org/elasticsearch/search/fetch/FetchPhase.java
@@ -516,7 +516,12 @@ public String toString() {
516
517
@FunctionalInterface
518
private interface MemoryUsageAccumulator {
519
- int apply(int i, boolean b);
+ /**
520
+ * Accumulates the provided bytes and returns the currently accumulated amount of bytes.
521
+ * When the reset parameter is true it accumulates the provided bytes, returns the
522
+ * accumulated amount but will also reset the local counter for the accumulated bytes.
523
+ */
524
+ int apply(int bytes, boolean reset);
525
}
526
527
/**
0 commit comments