/** * Return the number of cache entries that have been removed from the cache * either in order to stay under the maximum configured size/ram usage, or * because a segment has been closed. High numbers of evictions might mean * that queries are not reused or that the {@link QueryCachingPolicy * caching policy} caches too aggressively on NRT segments which get merged * early. * @see #getCacheCount() * @see #getCacheSize() */ public final long getEvictionCount() { return getCacheCount() - getCacheSize(); }
/** * Return the number of cache entries that have been removed from the cache * either in order to stay under the maximum configured size/ram usage, or * because a segment has been closed. High numbers of evictions might mean * that queries are not reused or that the {@link QueryCachingPolicy * caching policy} caches too aggressively on NRT segments which get merged * early. * @see #getCacheCount() * @see #getCacheSize() */ public final long getEvictionCount() { return getCacheCount() - getCacheSize(); }
@Override public long getCacheCount() { LRUQueryCache defaultQueryCache = indexSearcherProvider.getDefaultQueryCache(); return defaultQueryCache.getCacheCount(); }
/** * Return the number of cache entries that have been removed from the cache * either in order to stay under the maximum configured size/ram usage, or * because a segment has been closed. High numbers of evictions might mean * that queries are not reused or that the {@link QueryCachingPolicy * caching policy} caches too aggressively on NRT segments which get merged * early. * @see #getCacheCount() * @see #getCacheSize() */ public final long getEvictionCount() { return getCacheCount() - getCacheSize(); }
/** * Return the number of cache entries that have been removed from the cache * either in order to stay under the maximum configured size/ram usage, or * because a segment has been closed. High numbers of evictions might mean * that queries are not reused or that the {@link QueryCachingPolicy * caching policy} caches too aggressively on NRT segments which get merged * early. * @see #getCacheCount() * @see #getCacheSize() */ public final long getEvictionCount() { return getCacheCount() - getCacheSize(); }
private QueryCacheStats(final LRUQueryCache queryCache) { this(queryCache.getCacheCount(), queryCache.getCacheSize(), queryCache.getEvictionCount(), queryCache.getHitCount(), queryCache.getMissCount(), queryCache.getTotalCount(), (float) (queryCache.getHitCount() * 100) / queryCache.getTotalCount(), (float) (queryCache.getMissCount() * 100) / queryCache.getTotalCount()); }