mirror of https://github.com/apache/lucene.git
clean lastPayloadByteUpto (#619)
This commit is contained in:
parent
e18dfea8bd
commit
3ad4c1b3c9
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue