Package org.infinispan.commons.api.query
Interface HitCount
- All Known Implementing Classes:
TotalHitCount
public interface HitCount
-
Method Summary
-
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, thevalue()
here could be a lower-bound of the exact value, and in this case, this method will returnfalse
.- Returns:
- whether the
value()
is exact
-