java.lang.Object
org.apache.lucene.search.ScorerSupplier
- Direct Known Subclasses:
Boolean2ScorerSupplier,SpatialQuery.RelationScorerSupplier
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ScorerSupplier
public ScorerSupplier()
-
-
Method Details
-
get
Get theScorer. This may not returnnulland must be called at most once.- Parameters:
leadCost- Cost of the scorer that will be used in order to lead iteration. This can be interpreted as an upper bound of the number of times thatDocIdSetIterator.nextDoc(),DocIdSetIterator.advance(int)andTwoPhaseIterator.matches()will be called. Under doubt, passLong.MAX_VALUE, which will produce aScorerthat has good iteration capabilities.- Throws:
IOException
-
cost
public abstract long cost()Get an estimate of theScorerthat would be returned byget(long). This may be a costly operation, so it should only be called if necessary.- See Also:
-