File tree 1 file changed +18
-0
lines changed
lucene/test-framework/src/java/org/apache/lucene/tests/index
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -578,6 +578,24 @@ public BytesRef getPayload() throws IOException {
578
578
return payload ;
579
579
}
580
580
581
+ @ Override
582
+ public void intoBitSet (int upTo , FixedBitSet bitSet , int offset ) throws IOException {
583
+ assertThread ("Docs enums" , creationThread );
584
+ assert state != DocsEnumState .START : "intoBitSet() called before nextDoc()/advance()" ;
585
+ in .intoBitSet (upTo , bitSet , offset );
586
+ assert in .docID () >= upTo ;
587
+ assert in .docID () >= doc ;
588
+ doc = in .docID ();
589
+ if (doc == DocIdSetIterator .NO_MORE_DOCS ) {
590
+ state = DocsEnumState .FINISHED ;
591
+ positionMax = 0 ;
592
+ } else {
593
+ state = DocsEnumState .ITERATING ;
594
+ positionMax = super .freq ();
595
+ }
596
+ positionCount = 0 ;
597
+ }
598
+
581
599
void reset () {
582
600
state = DocsEnumState .START ;
583
601
doc = in .docID ();
You can’t perform that action at this time.
0 commit comments