gf2121 commented on code in PR #14390: URL: https://github.com/apache/lucene/pull/14390#discussion_r2008767598
########## lucene/core/src/java/org/apache/lucene/codecs/lucene101/Lucene101PostingsReader.java: ########## @@ -1059,6 +1059,29 @@ private void bufferIntoBitSet(int start, int end, FixedBitSet bitSet, int offset } } + @Override + public int docIDRunEnd() throws IOException { + // Note: this assumes that BLOCK_SIZE == 128, this bit of the code would need to be changed if Review Comment: This trick seems work: ``` boolean level0IsDense = encoding == DeltaEncoding.UNARY && docBitSet.getBits()[0] == -1L && docBitSet.getBits()[1] == -1L; if (level0IsDense) { assert Long.bitCount(docBitSet.getBits()[0]) + Long.bitCount(docBitSet.getBits()[1]) == BLOCK_SIZE : "We are assuming BLOCK_SIZE == 128 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: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org