Class HitsThresholdChecker

    • Field Detail

      • EXACT_HITS_COUNT_THRESHOLD_CHECKER

        private static final HitsThresholdChecker EXACT_HITS_COUNT_THRESHOLD_CHECKER
        No-op implementation of HitsThresholdChecker that does no counting, as the threshold can never be reached. This is useful for cases where early termination is never desired, so that the overhead of counting hits can be avoided.
      • totalHitsThreshold

        private final int totalHitsThreshold
    • Constructor Detail

      • HitsThresholdChecker

        HitsThresholdChecker​(int totalHitsThreshold)
    • Method Detail

      • getHitsThreshold

        final int getHitsThreshold()
      • isThresholdReached

        abstract boolean isThresholdReached()
      • incrementHitCount

        abstract void incrementHitCount()