@InterfaceAudience.Private public class InclusiveCombinedBlockCache extends CombinedBlockCache
CombinedBlockCache.CombinedCacheStatscombinedCacheStats, l1Cache, l2Cache| Constructor and Description | 
|---|
| InclusiveCombinedBlockCache(FirstLevelBlockCache l1,
                           BlockCache l2) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | cacheBlock(BlockCacheKey cacheKey,
          Cacheable buf,
          boolean inMemory)Add block to cache. | 
| boolean | evictBlock(BlockCacheKey cacheKey)Evict block from cache. | 
| Cacheable | getBlock(BlockCacheKey cacheKey,
        boolean caching,
        boolean repeat,
        boolean updateCacheMetrics)Fetch block from cache. | 
cacheBlock, evictBlocksByHfileName, getBlockCaches, getBlockCount, getCurrentDataSize, getCurrentSize, getDataBlockCount, getFirstLevelCache, getFreeSize, getMaxSize, getRpcRefCount, getStats, heapSize, iterator, setMaxSize, shutdown, sizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic InclusiveCombinedBlockCache(FirstLevelBlockCache l1, BlockCache l2)
public Cacheable getBlock(BlockCacheKey cacheKey, boolean caching, boolean repeat, boolean updateCacheMetrics)
BlockCachegetBlock in interface BlockCachegetBlock in class CombinedBlockCachecacheKey - Block to fetch.caching - Whether this request has caching enabled (used for stats)repeat - Whether this is a repeat lookup for the same block
        (used to avoid double counting cache misses when doing double-check locking)updateCacheMetrics - Whether to update cache metrics or notpublic void cacheBlock(BlockCacheKey cacheKey, Cacheable buf, boolean inMemory)
BlockCachecacheBlock in interface BlockCachecacheBlock in class CombinedBlockCachecacheKey - The block's cache key.buf - The block contents wrapped in a ByteBuffer.inMemory - Whether block should be treated as in-memory. This parameter is only useful for
                 the L1 lru cache.public boolean evictBlock(BlockCacheKey cacheKey)
BlockCacheevictBlock in interface BlockCacheevictBlock in class CombinedBlockCachecacheKey - Block to evictCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.