Package org.apache.lucene.search
Class HitsThresholdChecker.LocalHitsThresholdChecker
java.lang.Object
org.apache.lucene.search.HitsThresholdChecker
org.apache.lucene.search.HitsThresholdChecker.LocalHitsThresholdChecker
- Enclosing class:
HitsThresholdChecker
Default implementation of HitsThresholdChecker to be used for single threaded execution
-
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 -
hitCount
private int hitCount
-
-
Constructor Details
-
LocalHitsThresholdChecker
public LocalHitsThresholdChecker(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
-