public class ValueSourceScorer extends Scorer
Scorer which returns the result of FunctionValues.floatVal(int) as
the score for a document.Scorer.ChildScorer| Modifier and Type | Field and Description |
|---|---|
protected boolean |
checkDeletes |
protected int |
maxDoc |
protected IndexReader |
reader |
protected FunctionValues |
values |
FLAG_FREQS, FLAG_NONENO_MORE_DOCS| Modifier | Constructor and Description |
|---|---|
protected |
ValueSourceScorer(IndexReader reader,
FunctionValues values) |
| Modifier and Type | Method and Description |
|---|---|
int |
advance(int target) |
long |
cost() |
int |
docID() |
int |
freq() |
IndexReader |
getReader() |
boolean |
matches(int doc) |
boolean |
matchesValue(int doc) |
int |
nextDoc() |
float |
score() |
void |
setCheckDeletes(boolean checkDeletes) |
getChildren, getWeight, score, scoreattributesempty, slowAdvanceprotected final IndexReader reader
protected final int maxDoc
protected final FunctionValues values
protected boolean checkDeletes
protected ValueSourceScorer(IndexReader reader, FunctionValues values)
public IndexReader getReader()
public void setCheckDeletes(boolean checkDeletes)
public boolean matches(int doc)
public boolean matchesValue(int doc)
public int docID()
docID in class DocIdSetIteratorpublic int nextDoc()
throws IOException
nextDoc in class DocIdSetIteratorIOExceptionpublic int advance(int target)
throws IOException
advance in class DocIdSetIteratorIOExceptionpublic float score()
throws IOException
score in class ScorerIOExceptionpublic int freq()
throws IOException
freq in class DocsEnumIOExceptionpublic long cost()
cost in class DocIdSetIteratorCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.