keith-turner commented on code in PR #5341:
URL: https://github.com/apache/accumulo/pull/5341#discussion_r2018804705
##########
core/src/main/java/org/apache/accumulo/core/util/PeekingIterator.java:
##########
@@ -91,4 +92,30 @@ public boolean hasNext() {
}
return top != null;
}
+
+ /**
+ * Advances the underlying iterator looking for a match, up to {@code limit}
times.
+ *
+ * @param predicate condition that we are looking for
+ * @param limit number of times that we should look for a match
+ * @return results of the search and number of elements consumed from the
underlying iterator
Review Comment:
```suggestion
* @return true if an elements matched the predicate or false otherwise.
When this returns true the iterator will have a next and what peek() and next()
return will match the predicate.
##########
core/src/main/java/org/apache/accumulo/core/util/PeekingIterator.java:
##########
@@ -91,4 +92,30 @@ public boolean hasNext() {
}
return top != null;
}
+
+ /**
+ * Advances the underlying iterator looking for a match, up to {@code limit}
times.
Review Comment:
```suggestion
* Advances the underlying iterator looking for a match, inspecting up to
{@code limit} elements from the iterator.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]