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 longcostWithMinShouldMatch(LongStream costs, int numScorers, int minShouldMatch) (package private) static DocIdSetIteratorOptimize aDocIdSetIteratorfor the case when it is likely implemented via anImpactsEnum.(package private) static ScorablelikelyTermScorer(Scorable scorable) Optimize aScorablefor the case when it is likely implemented via aTermScorer.
-
Field Details
-
DEFAULT_IMPACTS_ENUM_CLASS
-
-
Constructor Details
-
ScorerUtil
ScorerUtil()
-
-
Method Details
-
costWithMinShouldMatch
-
likelyImpactsEnum
Optimize aDocIdSetIteratorfor 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 aScorablefor 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.
-