java.lang.Object
org.apache.lucene.search.ScorerUtil
Util class for Scorer related methods
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static long
costWithMinShouldMatch
(LongStream costs, int numScorers, int minShouldMatch) (package private) static DocIdSetIterator
Optimize aDocIdSetIterator
for the case when it is likely implemented via anImpactsEnum
.(package private) static Scorable
likelyTermScorer
(Scorable scorable) Optimize aScorable
for the case when it is likely implemented via aTermScorer
.
-
Field Details
-
DEFAULT_IMPACTS_ENUM_CLASS
-
-
Constructor Details
-
ScorerUtil
ScorerUtil()
-
-
Method Details
-
costWithMinShouldMatch
-
likelyImpactsEnum
Optimize aDocIdSetIterator
for the case when it is likely implemented via anImpactsEnum
. This return method only has 2 possible return types, which helps make sure that calls toDocIdSetIterator.nextDoc()
andDocIdSetIterator.advance(int)
are bimorphic at most and candidate for inlining. -
likelyTermScorer
Optimize aScorable
for the case when it is likely implemented via aTermScorer
. This return method only has 2 possible return types, which helps make sure that calls toScorable.score()
are bimorphic at most and candidate for inlining.
-