org.apache.lucene.queries.function
Class ValueSourceScorer
java.lang.Object
org.apache.lucene.search.DocIdSetIterator
org.apache.lucene.index.DocsEnum
org.apache.lucene.search.Scorer
org.apache.lucene.queries.function.ValueSourceScorer
public class ValueSourceScorer
- extends Scorer
Scorer
which returns the result of FunctionValues.floatVal(int)
as
the score for a document.
Fields inherited from class org.apache.lucene.search.Scorer |
weight |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
reader
protected final IndexReader reader
maxDoc
protected final int maxDoc
values
protected final FunctionValues values
checkDeletes
protected boolean checkDeletes
ValueSourceScorer
protected ValueSourceScorer(IndexReader reader,
FunctionValues values)
getReader
public IndexReader getReader()
setCheckDeletes
public void setCheckDeletes(boolean checkDeletes)
matches
public boolean matches(int doc)
matchesValue
public boolean matchesValue(int doc)
docID
public int docID()
- Specified by:
docID
in class DocIdSetIterator
nextDoc
public int nextDoc()
throws IOException
- Specified by:
nextDoc
in class DocIdSetIterator
- Throws:
IOException
advance
public int advance(int target)
throws IOException
- Specified by:
advance
in class DocIdSetIterator
- Throws:
IOException
score
public float score()
throws IOException
- Specified by:
score
in class Scorer
- Throws:
IOException
freq
public int freq()
throws IOException
- Specified by:
freq
in class DocsEnum
- Throws:
IOException
cost
public long cost()
- Specified by:
cost
in class DocIdSetIterator
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.