rdblue commented on code in PR #18704:
URL: https://github.com/apache/iceberg/pull/18704#discussion_r4428786712


##########
core/src/main/java/org/apache/iceberg/mumbling/MumblingBitmap.java:
##########
@@ -307,9 +312,49 @@ private int copyOriginalContainers(
 
       return 0;
     }
+
+    private Container overlay(int containerIndex) {
+      Container overlay = overlays.get(containerIndex);
+      if (overlay == null) {
+        overlay = Container.newOverlay(base, containerIndex);
+        overlays.put(containerIndex, overlay);

Review Comment:
   I think it's fine for a private method to create and store an overlay. We do 
this in many other places. For example, `MapBackedContentStats.statsFor(int)` 
will create a `FieldStats` object and store it in `statsById` if it isn't 
already there.



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to