Skip to content

Commit

Permalink
lucene-monitor: remove now-unused Scorable in QueryIndex.DataValues (#…
Browse files Browse the repository at this point in the history
…13412) (#13415)

(cherry picked from commit 8dad226)
  • Loading branch information
cpoerschke authored May 24, 2024
1 parent cc0fc85 commit 082bcbb
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
import org.apache.lucene.index.TermsEnum;
import org.apache.lucene.search.MatchAllDocsQuery;
import org.apache.lucene.search.Query;
import org.apache.lucene.search.Scorable;
import org.apache.lucene.search.ScoreMode;
import org.apache.lucene.search.SearcherManager;
import org.apache.lucene.search.TermQuery;
Expand Down Expand Up @@ -123,12 +122,10 @@ public static final class DataValues {
SortedDocValues cacheId;
BinaryDocValues mq;
Weight weight;
Scorable scorer;
LeafReaderContext ctx;
int docID;

void advanceTo(int doc) throws IOException {
assert scorer.docID() == doc;
queryId.advanceExact(doc);
cacheId.advanceExact(doc);
if (mq != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.search.IndexSearcher;
import org.apache.lucene.search.Query;
import org.apache.lucene.search.Scorable;
import org.apache.lucene.search.ScoreMode;
import org.apache.lucene.search.SearcherManager;
import org.apache.lucene.search.SimpleCollector;
Expand Down Expand Up @@ -166,11 +165,6 @@ public void setWeight(Weight weight) {
this.dataValues.weight = weight;
}

@Override
public void setScorer(Scorable scorer) {
this.dataValues.scorer = scorer;
}

@Override
public void collect(int doc) throws IOException {
dataValues.advanceTo(doc);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
import org.apache.lucene.search.IndexSearcher;
import org.apache.lucene.search.MatchAllDocsQuery;
import org.apache.lucene.search.Query;
import org.apache.lucene.search.Scorable;
import org.apache.lucene.search.ScoreMode;
import org.apache.lucene.search.SearcherManager;
import org.apache.lucene.search.SimpleCollector;
Expand Down Expand Up @@ -369,11 +368,6 @@ public void setWeight(Weight weight) {
this.dataValues.weight = weight;
}

@Override
public void setScorer(Scorable scorer) {
this.dataValues.scorer = scorer;
}

@Override
public void collect(int doc) throws IOException {
dataValues.advanceTo(doc);
Expand Down

0 comments on commit 082bcbb

Please sign in to comment.