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
private static class HitsThresholdChecker.GlobalHitsThresholdChecker extends HitsThresholdChecker
Implementation of HitsThresholdChecker which allows global hit counting
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.atomic.AtomicLong
globalHitCount
private int
totalHitsThreshold
-
Constructor Summary
Constructors Constructor Description GlobalHitsThresholdChecker(int totalHitsThreshold)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getHitsThreshold()
void
incrementHitCount()
boolean
isThresholdReached()
ScoreMode
scoreMode()
-
Methods inherited from class org.apache.lucene.search.HitsThresholdChecker
create, createShared
-
-
-
-
Method Detail
-
incrementHitCount
public void incrementHitCount()
- Specified by:
incrementHitCount
in classHitsThresholdChecker
-
isThresholdReached
public boolean isThresholdReached()
- Specified by:
isThresholdReached
in classHitsThresholdChecker
-
scoreMode
public ScoreMode scoreMode()
- Specified by:
scoreMode
in classHitsThresholdChecker
-
getHitsThreshold
public int getHitsThreshold()
- Specified by:
getHitsThreshold
in classHitsThresholdChecker
-
-