Package org.apache.lucene.search
Class HitsThresholdChecker.GlobalHitsThresholdChecker
java.lang.Object
org.apache.lucene.search.HitsThresholdChecker
org.apache.lucene.search.HitsThresholdChecker.GlobalHitsThresholdChecker
- Enclosing class:
HitsThresholdChecker
Implementation of HitsThresholdChecker which allows global hit counting
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidbooleanMethods inherited from class org.apache.lucene.search.HitsThresholdChecker
create, createShared
-
Field Details
-
totalHitsThreshold
private final int totalHitsThreshold -
globalHitCount
-
-
Constructor Details
-
GlobalHitsThresholdChecker
public GlobalHitsThresholdChecker(int totalHitsThreshold)
-
-
Method Details
-
incrementHitCount
public void incrementHitCount()- Specified by:
incrementHitCountin classHitsThresholdChecker
-
isThresholdReached
public boolean isThresholdReached()- Specified by:
isThresholdReachedin classHitsThresholdChecker
-
scoreMode
- Specified by:
scoreModein classHitsThresholdChecker
-
getHitsThreshold
public int getHitsThreshold()- Specified by:
getHitsThresholdin classHitsThresholdChecker
-