msokolov commented on code in PR #12268:
URL: https://github.com/apache/lucene/pull/12268#discussion_r1187470656
##########
lucene/core/src/java/org/apache/lucene/util/BitSet.java:
##########
@@ -43,6 +43,16 @@ public static BitSet of(DocIdSetIterator it, int maxDoc)
throws IOException {
return set;
}
+ /**
+ * Clear all the bits of the set.
+ *
+ * <p>Depending on the implementation, this may be significantly faster than
clear(0, length).
+ */
+ public void clear() {
+ // default implementation for compatibility with possible out-of-tree code
Review Comment:
"out-of-tree" is confusing me here - do you mean non-Lucene code? I don't
know that we need to distinguish since this method could also be called by
Lucene internal methods?
--
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]