epotyom commented on code in PR #16089:
URL: https://github.com/apache/lucene/pull/16089#discussion_r3379834594


##########
lucene/core/src/java/org/apache/lucene/util/DocIdSetBuilder.java:
##########
@@ -231,6 +231,20 @@ public BulkAdder grow(int numDocs) {
     return adder;
   }
 
+  /**
+   * If the builder is still in buffer (sparse) mode and this hint indicates 
the total number of
+   * docs will exceed the threshold above which a FixedBitSet is preferred, 
eagerly upgrade to
+   * FixedBitSet.
+   */
+  public void growHint(long expectedDocs) {

Review Comment:
   [nit] Maybe rename to avoid the impression that the method resizes (`grows`) 
some buffers - e.g. `expectMore`, wdyt?



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