File tree Expand file tree Collapse file tree
lucene/core/src/java/org/apache/lucene/util/bkd Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,13 +39,14 @@ final class DocIdsWriter {
3939 private final ScratchDocIdSetIterator scratchDocIdSetIterator = new ScratchDocIdSetIterator ();
4040
4141 /**
42- DocIdSetIterator to be used to iterate over the scratch buffer. A single instance is reused to avoid
43- re-allocating the object. The reset method should be called before each use with the count.
44-
45- The main reason for existing is to be able to call the {@link IntersectVisitor#visit(DocIdSetIterator)} method
46- rather than the {@link IntersectVisitor#visit(int)} method. This seems to make a difference in performance,
47- probably due to fewer virtual calls then happening (once per read call rather than once per doc).
48-
42+ * DocIdSetIterator to be used to iterate over the scratch buffer. A single instance is reused to
43+ * avoid re-allocating the object. The reset method should be called before each use with the
44+ * count.
45+ *
46+ * <p>The main reason for existing is to be able to call the {@link
47+ * IntersectVisitor#visit(DocIdSetIterator)} method rather than the {@link
48+ * IntersectVisitor#visit(int)} method. This seems to make a difference in performance, probably
49+ * due to fewer virtual calls then happening (once per read call rather than once per doc).
4950 */
5051 private class ScratchDocIdSetIterator extends DocIdSetIterator {
5152
You can’t perform that action at this time.
0 commit comments