Changed readLong to readInt for trailing docIds in leaf block

This commit is contained in:
expani 2024-10-22 18:08:14 +05:30
parent 7f95cd383e
commit af8b914a9f
1 changed files with 2 additions and 4 deletions

View File

@ -358,8 +358,7 @@ public class DocIdEncodingBenchmark {
out.writeLong(packedLong);
}
for (; i < count; i++) {
// out.writeInt(docIds[i]);
out.writeLong(docIds[i]);
out.writeInt(docIds[i]);
}
}
@ -387,8 +386,7 @@ public class DocIdEncodingBenchmark {
docIDs[i + 2] = (int) (packedLong & BPV_21_MASK);
}
for (; i < count; i++) {
// docIDs[i] = in.readInt();
docIDs[i] = (int) in.readLong();
docIDs[i] = in.readInt();
}
}
}