clean lastPayloadByteUpto (#619)

This commit is contained in:
gf2121 2022-01-26 14:03:32 +08:00 committed by GitHub
parent e18dfea8bd
commit 3ad4c1b3c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 5 deletions

View File

@ -50,7 +50,6 @@ final class Lucene90SkipWriter extends MultiLevelSkipListWriter {
private long[] lastSkipDocPointer; private long[] lastSkipDocPointer;
private long[] lastSkipPosPointer; private long[] lastSkipPosPointer;
private long[] lastSkipPayPointer; private long[] lastSkipPayPointer;
private int[] lastPayloadByteUpto;
private final IndexOutput docOut; private final IndexOutput docOut;
private final IndexOutput posOut; private final IndexOutput posOut;
@ -86,7 +85,6 @@ final class Lucene90SkipWriter extends MultiLevelSkipListWriter {
if (payOut != null) { if (payOut != null) {
lastSkipPayPointer = new long[maxSkipLevels]; lastSkipPayPointer = new long[maxSkipLevels];
} }
lastPayloadByteUpto = new int[maxSkipLevels];
} }
curCompetitiveFreqNorms = new CompetitiveImpactAccumulator[maxSkipLevels]; curCompetitiveFreqNorms = new CompetitiveImpactAccumulator[maxSkipLevels];
for (int i = 0; i < maxSkipLevels; ++i) { for (int i = 0; i < maxSkipLevels; ++i) {
@ -137,9 +135,6 @@ final class Lucene90SkipWriter extends MultiLevelSkipListWriter {
Arrays.fill(lastSkipDocPointer, lastDocFP); Arrays.fill(lastSkipDocPointer, lastDocFP);
if (fieldHasPositions) { if (fieldHasPositions) {
Arrays.fill(lastSkipPosPointer, lastPosFP); Arrays.fill(lastSkipPosPointer, lastPosFP);
if (fieldHasPayloads) {
Arrays.fill(lastPayloadByteUpto, 0);
}
if (fieldHasOffsets || fieldHasPayloads) { if (fieldHasOffsets || fieldHasPayloads) {
Arrays.fill(lastSkipPayPointer, lastPayFP); Arrays.fill(lastSkipPayPointer, lastPayFP);
} }