mirror of https://github.com/apache/lucene.git
remove obsolete scorer methods
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1000681 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cce20cd820
commit
791d14061b
|
@ -227,31 +227,10 @@ class ValueSourceScorer extends Scorer {
|
|||
return nextDoc();
|
||||
}
|
||||
|
||||
public int doc() {
|
||||
return doc;
|
||||
}
|
||||
|
||||
public boolean next() {
|
||||
for (; ;) {
|
||||
doc++;
|
||||
if (doc >= maxDoc) return false;
|
||||
if (matches(doc)) return true;
|
||||
}
|
||||
}
|
||||
|
||||
public boolean skipTo(int target) {
|
||||
doc = target - 1;
|
||||
return next();
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public float score() throws IOException {
|
||||
return values.floatVal(doc);
|
||||
}
|
||||
|
||||
public Explanation explain(int doc) throws IOException {
|
||||
return values.explain(doc);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue