public class ConstantScorer
extends org.apache.lucene.search.Scorer
DocIdSetIterator and emits a constant score.| Modifier and Type | Method and Description |
|---|---|
int |
advance(int target) |
long |
cost() |
static ConstantScorer |
create(org.apache.lucene.search.DocIdSetIterator iterator,
org.apache.lucene.search.Weight weight,
float constantScore) |
int |
docID() |
int |
freq() |
int |
nextDoc() |
float |
score() |
public static ConstantScorer create(org.apache.lucene.search.DocIdSetIterator iterator, org.apache.lucene.search.Weight weight, float constantScore) throws IOException
IOExceptionpublic int nextDoc()
throws IOException
nextDoc in class org.apache.lucene.search.DocIdSetIteratorIOExceptionpublic int docID()
docID in class org.apache.lucene.search.DocIdSetIteratorpublic float score()
throws IOException
score in class org.apache.lucene.search.ScorerIOExceptionpublic int freq()
throws IOException
freq in class org.apache.lucene.index.DocsEnumIOExceptionpublic int advance(int target)
throws IOException
advance in class org.apache.lucene.search.DocIdSetIteratorIOExceptionpublic long cost()
cost in class org.apache.lucene.search.DocIdSetIteratorCopyright © 2009–2016. All rights reserved.