mirror of https://github.com/apache/lucene.git
lucene-monitor: remove now-unused Scorable in QueryIndex.DataValues (#13412)
This commit is contained in:
parent
9ecf566cca
commit
8dad226afa
|
@ -34,7 +34,6 @@ import org.apache.lucene.index.Terms;
|
||||||
import org.apache.lucene.index.TermsEnum;
|
import org.apache.lucene.index.TermsEnum;
|
||||||
import org.apache.lucene.search.MatchAllDocsQuery;
|
import org.apache.lucene.search.MatchAllDocsQuery;
|
||||||
import org.apache.lucene.search.Query;
|
import org.apache.lucene.search.Query;
|
||||||
import org.apache.lucene.search.Scorable;
|
|
||||||
import org.apache.lucene.search.ScoreMode;
|
import org.apache.lucene.search.ScoreMode;
|
||||||
import org.apache.lucene.search.SearcherManager;
|
import org.apache.lucene.search.SearcherManager;
|
||||||
import org.apache.lucene.search.TermQuery;
|
import org.apache.lucene.search.TermQuery;
|
||||||
|
@ -123,7 +122,6 @@ abstract class QueryIndex implements Closeable {
|
||||||
SortedDocValues cacheId;
|
SortedDocValues cacheId;
|
||||||
BinaryDocValues mq;
|
BinaryDocValues mq;
|
||||||
Weight weight;
|
Weight weight;
|
||||||
Scorable scorer;
|
|
||||||
LeafReaderContext ctx;
|
LeafReaderContext ctx;
|
||||||
int docID;
|
int docID;
|
||||||
|
|
||||||
|
|
|
@ -160,11 +160,6 @@ class ReadonlyQueryIndex extends QueryIndex {
|
||||||
this.dataValues.weight = weight;
|
this.dataValues.weight = weight;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setScorer(Scorable scorer) {
|
|
||||||
this.dataValues.scorer = scorer;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void collect(int doc) throws IOException {
|
public void collect(int doc) throws IOException {
|
||||||
dataValues.advanceTo(doc);
|
dataValues.advanceTo(doc);
|
||||||
|
|
|
@ -41,7 +41,6 @@ import org.apache.lucene.index.Term;
|
||||||
import org.apache.lucene.search.IndexSearcher;
|
import org.apache.lucene.search.IndexSearcher;
|
||||||
import org.apache.lucene.search.MatchAllDocsQuery;
|
import org.apache.lucene.search.MatchAllDocsQuery;
|
||||||
import org.apache.lucene.search.Query;
|
import org.apache.lucene.search.Query;
|
||||||
import org.apache.lucene.search.Scorable;
|
|
||||||
import org.apache.lucene.search.ScoreMode;
|
import org.apache.lucene.search.ScoreMode;
|
||||||
import org.apache.lucene.search.SearcherManager;
|
import org.apache.lucene.search.SearcherManager;
|
||||||
import org.apache.lucene.search.SimpleCollector;
|
import org.apache.lucene.search.SimpleCollector;
|
||||||
|
@ -369,11 +368,6 @@ class WritableQueryIndex extends QueryIndex {
|
||||||
this.dataValues.weight = weight;
|
this.dataValues.weight = weight;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setScorer(Scorable scorer) {
|
|
||||||
this.dataValues.scorer = scorer;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void collect(int doc) throws IOException {
|
public void collect(int doc) throws IOException {
|
||||||
dataValues.advanceTo(doc);
|
dataValues.advanceTo(doc);
|
||||||
|
|
Loading…
Reference in New Issue