Skip to content

Impl intoBitset and docIdRunEnd for wrappers #14618

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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 @@ -17,6 +17,7 @@
package org.apache.lucene.index;

import java.io.IOException;
import org.apache.lucene.util.FixedBitSet;

/**
* Exposes multi-valued view over a single-valued instance.
Expand Down Expand Up @@ -62,6 +63,16 @@ public boolean advanceExact(int target) throws IOException {
return in.advanceExact(target);
}

@Override
public void intoBitSet(int upTo, FixedBitSet bitSet, int offset) throws IOException {
in.intoBitSet(upTo, bitSet, offset);
}

@Override
public int docIDRunEnd() throws IOException {
return in.docIDRunEnd();
}

@Override
public long cost() {
return in.cost();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import java.io.IOException;
import org.apache.lucene.util.BytesRef;
import org.apache.lucene.util.FixedBitSet;

/**
* Exposes multi-valued iterator view over a single-valued iterator.
Expand Down Expand Up @@ -87,6 +88,16 @@ public boolean advanceExact(int target) throws IOException {
return false;
}

@Override
public void intoBitSet(int upTo, FixedBitSet bitSet, int offset) throws IOException {
in.intoBitSet(upTo, bitSet, offset);
}

@Override
public int docIDRunEnd() throws IOException {
return in.docIDRunEnd();
}

@Override
public BytesRef lookupOrd(long ord) throws IOException {
// cast is ok: single-valued cannot exceed Integer.MAX_VALUE
Expand Down