Class LruBlockCache.CacheStats
- java.lang.Object
-
- org.apache.accumulo.core.file.blockfile.cache.lru.LruBlockCache.CacheStats
-
- All Implemented Interfaces:
BlockCache.Stats
- Enclosing class:
- LruBlockCache
public static class LruBlockCache.CacheStats extends Object implements BlockCache.Stats
-
-
Constructor Summary
Constructors Constructor Description CacheStats()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidduplicateReads()voidevict()voidevicted()doubleevictedPerEviction()longgetDuplicateReads()longgetEvictedCount()longgetEvictionCount()doublegetHitRatio()longgetMissCount()doublegetMissRatio()voidhit()longhitCount()Returns the number of lookups that have returned a cached value.voidmiss()longrequestCount()Returns the number of times the lookup methods have returned either a cached or uncached value.
-
-
-
Method Detail
-
miss
public void miss()
-
hit
public void hit()
-
evict
public void evict()
-
duplicateReads
public void duplicateReads()
-
evicted
public void evicted()
-
requestCount
public long requestCount()
Description copied from interface:BlockCache.StatsReturns the number of times the lookup methods have returned either a cached or uncached value.- Specified by:
requestCountin interfaceBlockCache.Stats- Returns:
- the number of lookups
-
getMissCount
public long getMissCount()
-
hitCount
public long hitCount()
Description copied from interface:BlockCache.StatsReturns the number of lookups that have returned a cached value.- Specified by:
hitCountin interfaceBlockCache.Stats- Returns:
- the number of lookups that have returned a cached value
-
getEvictionCount
public long getEvictionCount()
-
getDuplicateReads
public long getDuplicateReads()
-
getEvictedCount
public long getEvictedCount()
-
getHitRatio
public double getHitRatio()
-
getMissRatio
public double getMissRatio()
-
evictedPerEviction
public double evictedPerEviction()
-
-