KKcorps commented on code in PR #9062: URL: https://github.com/apache/pinot/pull/9062#discussion_r925370537
########## pinot-segment-local/src/main/java/org/apache/pinot/segment/local/indexsegment/immutable/ImmutableSegmentImpl.java: ########## @@ -215,6 +216,13 @@ public List<StarTreeV2> getStarTrees() { return _starTreeIndexContainer != null ? _starTreeIndexContainer.getStarTrees() : null; } + @Nullable + public void setValidDocIds(ImmutableRoaringBitmap validDocIds) { + for (int docId: validDocIds.toArray()) { + _validDocIds.add(docId); Review Comment: We can use `MutableRoaringBitmap.add` operation here. -- 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: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org