@InterfaceAudience.Private public class CacheStats extends Object
| Modifier and Type | Field and Description | 
|---|---|
| private FastLongHistogram | ageAtEvictionKeep running age at eviction time | 
| private LongAdder | bloomChunkHitCount | 
| private LongAdder | bloomChunkMissCount | 
| private LongAdder | dataHitCount | 
| private LongAdder | dataMissCountPer Block Type Counts | 
| (package private) static int | DEFAULT_WINDOW_PERIODSSliding window statistics. | 
| private LongAdder | deleteFamilyBloomHitCount | 
| private LongAdder | deleteFamilyBloomMissCount | 
| private LongAdder | evictedBlockCountThe total number of blocks that have been evicted | 
| private LongAdder | evictionCountThe number of times an eviction has occurred | 
| private AtomicLong | failedInsertsThe total number of blocks that were not inserted. | 
| private LongAdder | fileInfoHitCount | 
| private LongAdder | fileInfoMissCount | 
| private LongAdder | generalBloomMetaHitCount | 
| private LongAdder | generalBloomMetaMissCount | 
| private LongAdder | hitCachingCountThe number of getBlock requests that were cache hits, but only from
 requests that were set to use the block cache. | 
| private long[] | hitCachingCountsCaching hit counts for each period in window | 
| private LongAdder | hitCountThe number of getBlock requests that were cache hits | 
| private long[] | hitCountsHit counts for each period in window | 
| private LongAdder | intermediateIndexHitCount | 
| private LongAdder | intermediateIndexMissCount | 
| private long | lastHitCachingCountLast hit caching count read | 
| private long | lastHitCountLast hit count read | 
| private long | lastRequestCachingCountLast request caching count read | 
| private long | lastRequestCountLast request count read | 
| private LongAdder | leafIndexHitCount | 
| private LongAdder | leafIndexMissCount | 
| private LongAdder | metaHitCount | 
| private LongAdder | metaMissCount | 
| private LongAdder | missCachingCountThe number of getBlock requests that were cache misses, but only from
 requests that were set to use the block cache. | 
| private LongAdder | missCountThe number of getBlock requests that were cache misses | 
| private int | numPeriodsInWindowThe number of metrics periods to include in window | 
| private LongAdder | primaryEvictedBlockCountThe total number of blocks for primary replica that have been evicted | 
| private LongAdder | primaryHitCountThe number of getBlock requests that were cache hits from primary replica | 
| private LongAdder | primaryMissCountThe number of getBlock requests for primary replica that were cache misses | 
| private long[] | requestCachingCountsCaching access counts for each period in window | 
| private long[] | requestCountsAccess counts for each period in window | 
| private LongAdder | rootIndexHitCount | 
| private LongAdder | rootIndexMissCount | 
| private long | startTime | 
| private LongAdder | trailerHitCount | 
| private LongAdder | trailerMissCount | 
| private int | windowIndexCurrent window index (next to be updated) | 
| Constructor and Description | 
|---|
| CacheStats(String name) | 
| CacheStats(String name,
          int numPeriodsInWindow) | 
static final int DEFAULT_WINDOW_PERIODS
private final LongAdder primaryHitCount
private final LongAdder hitCachingCount
private final LongAdder primaryMissCount
private final LongAdder missCachingCount
private final LongAdder evictionCount
private final LongAdder evictedBlockCount
private final LongAdder primaryEvictedBlockCount
private final AtomicLong failedInserts
private final LongAdder dataMissCount
private final LongAdder leafIndexMissCount
private final LongAdder bloomChunkMissCount
private final LongAdder metaMissCount
private final LongAdder rootIndexMissCount
private final LongAdder intermediateIndexMissCount
private final LongAdder fileInfoMissCount
private final LongAdder generalBloomMetaMissCount
private final LongAdder deleteFamilyBloomMissCount
private final LongAdder trailerMissCount
private final LongAdder dataHitCount
private final LongAdder leafIndexHitCount
private final LongAdder bloomChunkHitCount
private final LongAdder metaHitCount
private final LongAdder rootIndexHitCount
private final LongAdder intermediateIndexHitCount
private final LongAdder fileInfoHitCount
private final LongAdder generalBloomMetaHitCount
private final LongAdder deleteFamilyBloomHitCount
private final LongAdder trailerHitCount
private final int numPeriodsInWindow
private final long[] hitCounts
private final long[] hitCachingCounts
private final long[] requestCounts
private final long[] requestCachingCounts
private long lastHitCount
private long lastHitCachingCount
private long lastRequestCount
private long lastRequestCachingCount
private int windowIndex
private FastLongHistogram ageAtEviction
private long startTime
public CacheStats(String name)
public CacheStats(String name, int numPeriodsInWindow)
public void evict()
public void evicted(long t, boolean primary)
public long failInsert()
public long getDataMissCount()
public long getLeafIndexMissCount()
public long getBloomChunkMissCount()
public long getMetaMissCount()
public long getRootIndexMissCount()
public long getIntermediateIndexMissCount()
public long getFileInfoMissCount()
public long getGeneralBloomMetaMissCount()
public long getDeleteFamilyBloomMissCount()
public long getTrailerMissCount()
public long getDataHitCount()
public long getLeafIndexHitCount()
public long getBloomChunkHitCount()
public long getMetaHitCount()
public long getRootIndexHitCount()
public long getIntermediateIndexHitCount()
public long getFileInfoHitCount()
public long getGeneralBloomMetaHitCount()
public long getDeleteFamilyBloomHitCount()
public long getTrailerHitCount()
public long getRequestCount()
public long getRequestCachingCount()
public long getMissCount()
public long getPrimaryMissCount()
public long getMissCachingCount()
public long getHitCount()
public long getPrimaryHitCount()
public long getHitCachingCount()
public long getEvictionCount()
public long getEvictedCount()
public long getPrimaryEvictedCount()
public double getHitRatio()
public double getHitCachingRatio()
public double getMissRatio()
public double getMissCachingRatio()
public double evictedPerEviction()
public long getFailedInserts()
public void rollMetricsPeriod()
public long getSumHitCountsPastNPeriods()
public long getSumRequestCountsPastNPeriods()
public long getSumHitCachingCountsPastNPeriods()
public long getSumRequestCachingCountsPastNPeriods()
public double getHitRatioPastNPeriods()
public double getHitCachingRatioPastNPeriods()
public AgeSnapshot getAgeAtEvictionSnapshot()
private static long sum(long[] counts)
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.