Interface HitCount

All Known Implementing Classes:
TotalHitCount

public interface HitCount
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    For efficiency reasons, the computation of the hit count could be limited to some upper bound.
    int
    This returned value could be either exact or a lower-bound of the exact value.
  • Method Details

    • value

      int value()
      This returned value could be either exact or a lower-bound of the exact value.

      When the query is non-indexed, for performance reasons, the hit count is not calculated and will return -1.

      Returns:
      the total hit count value
      See Also:
    • isExact

      boolean isExact()
      For efficiency reasons, the computation of the hit count could be limited to some upper bound. If the hit account accuracy is limited, the value() here could be a lower-bound of the exact value, and in this case, this method will return false.
      Returns:
      whether the value() is exact