Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,24 @@ public BytesRef getPayload() throws IOException {
return payload;
}

@Override
public void intoBitSet(int upTo, FixedBitSet bitSet, int offset) throws IOException {
assertThread("Docs enums", creationThread);
assert state != DocsEnumState.START : "intoBitSet() called before nextDoc()/advance()";
in.intoBitSet(upTo, bitSet, offset);
assert in.docID() >= upTo;
assert in.docID() >= doc;
doc = in.docID();
if (doc == DocIdSetIterator.NO_MORE_DOCS) {
state = DocsEnumState.FINISHED;
positionMax = 0;
} else {
state = DocsEnumState.ITERATING;
positionMax = super.freq();
}
positionCount = 0;
}

void reset() {
state = DocsEnumState.START;
doc = in.docID();
Expand Down