All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.commons.api.query.HitCount Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev04
Show newest version
package org.infinispan.commons.api.query;

public interface HitCount {

   /**
    * 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. * * @return the total hit count value * @see #isExact() */ int value(); /** * For efficiency reasons, the computation of the hit count could be limited to some upper bound. * If the hit account accuracy is limited, the {@link #value()} here could be a lower-bound of the exact value, * and in this case, this method will return {@code false}. * * @return whether the {@link #value()} is exact */ boolean isExact(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy