| Package | Description | 
|---|---|
| org.apache.hadoop.hbase.io.hfile | Provides implementations of  HFileand HFileBlockCache. | 
| Modifier and Type | Field and Description | 
|---|---|
| private ConcurrentHashMap<BlockCacheKey,LruCachedBlock> | LruBlockCache. mapDefined the cache map as  ConcurrentHashMaphere, because inLruBlockCache.getBlock(org.apache.hadoop.hbase.io.hfile.BlockCacheKey, boolean, boolean, boolean), we need to guarantee the atomicity of map#computeIfPresent
 (key, func). | 
| private org.apache.hbase.thirdparty.com.google.common.collect.MinMaxPriorityQueue<LruCachedBlock> | LruCachedBlockQueue. queue | 
| Modifier and Type | Method and Description | 
|---|---|
| LruCachedBlock | LruCachedBlockQueue. poll() | 
| LruCachedBlock | LruCachedBlockQueue. pollLast() | 
| Modifier and Type | Method and Description | 
|---|---|
| (package private) Map<BlockCacheKey,LruCachedBlock> | LruBlockCache. getMapForTests() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | LruCachedBlockQueue. add(LruCachedBlock cb)Attempt to add the specified cached block to this queue. | 
| void | LruBlockCache.BlockBucket. add(LruCachedBlock block) | 
| int | LruCachedBlock. compareTo(LruCachedBlock that) | 
| protected long | LruBlockCache. evictBlock(LruCachedBlock block,
          boolean evictedByEvictionProcess)Evict the block, and it will be cached by the victim handler if exists &&
 block may be read again later | 
| private long | LruBlockCache. updateSizeMetrics(LruCachedBlock cb,
                 boolean evict)Helper function that updates the local size counter and also updates any
 per-cf or per-blocktype metrics it can discern from given
  LruCachedBlock | 
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.