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
IOException
public int nextDoc() throws IOException
nextDoc
in class org.apache.lucene.search.DocIdSetIterator
IOException
public int docID()
docID
in class org.apache.lucene.search.DocIdSetIterator
public float score() throws IOException
score
in class org.apache.lucene.search.Scorer
IOException
public int freq() throws IOException
freq
in class org.apache.lucene.index.DocsEnum
IOException
public int advance(int target) throws IOException
advance
in class org.apache.lucene.search.DocIdSetIterator
IOException
public long cost()
cost
in class org.apache.lucene.search.DocIdSetIterator
Copyright © 2009–2015. All rights reserved.