Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ private void refillFullBlock() throws IOException {
int numLongs;
if (bitsPerValue == 0) {
// 0 is used to record that all 256 docs in the block are consecutive
numLongs = BLOCK_SIZE / Long.SIZE; // 2
numLongs = BLOCK_SIZE / Long.SIZE; // 4
docBitSet.set(0, BLOCK_SIZE);
} else {
numLongs = -bitsPerValue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ private void flushDocBlock(boolean finishTerm) throws IOException {
spareBitSet.set(s);
}
// We never use the bit set encoding when it requires more than Integer.SIZE=32 bits per
// value. So the bit set cannot have more than BLOCK_SIZE * Integer.SIZE / Long.SIZE = 64
// value. So the bit set cannot have more than BLOCK_SIZE * Integer.SIZE / Long.SIZE = 128
// longs, which fits on a byte.
assert numBitSetLongs <= BLOCK_SIZE / 2;
level0Output.writeByte((byte) -numBitSetLongs);
Expand Down Expand Up @@ -483,7 +483,7 @@ private void flushDocBlock(boolean finishTerm) throws IOException {
level0FreqNormAccumulator.clear();
}

if ((docCount & LEVEL1_MASK) == 0) { // true every 32 blocks (4,096 docs)
if ((docCount & LEVEL1_MASK) == 0) { // true every 32 blocks (8,192 docs)
writeLevel1SkipData();
level1LastDocID = docID;
level1CompetitiveFreqNormAccumulator.clear();
Expand Down
Loading