mirror of https://github.com/apache/lucene.git
This commit is contained in:
parent
13e747f95f
commit
0968904e6a
|
@ -158,7 +158,7 @@ final class SegmentTermsEnum extends BaseTermsEnum {
|
|||
break allTerms;
|
||||
}
|
||||
final long lastFP = currentFrame.fpOrig;
|
||||
currentFrame = stack[currentFrame.ord - 1];
|
||||
currentFrame = getFrame(currentFrame.ord - 1);
|
||||
assert lastFP == currentFrame.lastSubFP;
|
||||
// if (DEBUG) {
|
||||
// System.out.println(" reset validIndexPrefix=" + validIndexPrefix);
|
||||
|
@ -209,11 +209,11 @@ final class SegmentTermsEnum extends BaseTermsEnum {
|
|||
new SegmentTermsEnumFrame
|
||||
[ArrayUtil.oversize(1 + ord, RamUsageEstimator.NUM_BYTES_OBJECT_REF)];
|
||||
System.arraycopy(stack, 0, next, 0, stack.length);
|
||||
for (int stackOrd = stack.length; stackOrd < next.length; stackOrd++) {
|
||||
next[stackOrd] = new SegmentTermsEnumFrame(this, stackOrd);
|
||||
}
|
||||
stack = next;
|
||||
}
|
||||
if (stack[ord] == null) {
|
||||
stack[ord] = new SegmentTermsEnumFrame(this, ord);
|
||||
}
|
||||
assert stack[ord].ord == ord;
|
||||
return stack[ord];
|
||||
}
|
||||
|
@ -398,7 +398,7 @@ final class SegmentTermsEnum extends BaseTermsEnum {
|
|||
output = Lucene90BlockTreeTermsReader.FST_OUTPUTS.add(output, arc.output());
|
||||
}
|
||||
if (arc.isFinal()) {
|
||||
lastFrame = stack[1 + lastFrame.ord];
|
||||
lastFrame = getFrame(1 + lastFrame.ord);
|
||||
}
|
||||
targetUpto++;
|
||||
}
|
||||
|
@ -689,7 +689,7 @@ final class SegmentTermsEnum extends BaseTermsEnum {
|
|||
output = Lucene90BlockTreeTermsReader.FST_OUTPUTS.add(output, arc.output());
|
||||
}
|
||||
if (arc.isFinal()) {
|
||||
lastFrame = stack[1 + lastFrame.ord];
|
||||
lastFrame = getFrame(1 + lastFrame.ord);
|
||||
}
|
||||
targetUpto++;
|
||||
}
|
||||
|
@ -1066,7 +1066,7 @@ final class SegmentTermsEnum extends BaseTermsEnum {
|
|||
return null;
|
||||
}
|
||||
final long lastFP = currentFrame.fpOrig;
|
||||
currentFrame = stack[currentFrame.ord - 1];
|
||||
currentFrame = getFrame(currentFrame.ord - 1);
|
||||
|
||||
if (currentFrame.nextEnt == -1 || currentFrame.lastSubFP != lastFP) {
|
||||
// We popped into a frame that's not loaded
|
||||
|
|
Loading…
Reference in New Issue