uschindler commented on code in PR #12268:
URL: https://github.com/apache/lucene/pull/12268#discussion_r1186249152
##########
lucene/core/src/java/org/apache/lucene/util/BitSet.java:
##########
@@ -43,6 +43,13 @@ 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 abstract void clear();
Review Comment:
For backwards compatibility with possible existing impleentations, this
should call by default call `clear(0, length())` instead of being abstract.
--
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]