DomGarguilo commented on code in PR #3342:
URL: https://github.com/apache/accumulo/pull/3342#discussion_r2395253734


##########
core/src/main/java/org/apache/accumulo/core/summary/SummarySerializer.java:
##########
@@ -97,17 +98,8 @@ public Map<String,Long> getSummary(List<RowRange> ranges, 
SummarizerFactory sf)
   }
 
   public boolean exceedsRange(List<RowRange> ranges) {
-    boolean er = false;
-    for (LgSummaries lgs : allSummaries) {
-      for (RowRange ke : ranges) {
-        er |= lgs.exceedsRange(ke.getStartRow(), ke.getEndRow());
-        if (er) {
-          return er;
-        }
-      }
-    }
-
-    return er;
+    return Arrays.stream(allSummaries).anyMatch(lgs -> ranges.stream()

Review Comment:
   checked all ranges in 00afdfb



-- 
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]

Reply via email to