| Package | Description | 
|---|---|
| org.apache.hadoop.hbase.io.hfile | 
 Provides implementations of  
HFile and HFile
 BlockCache. | 
| org.apache.hadoop.hbase.io.hfile.bucket | 
 Provides  
BucketCache, an implementation of
 BlockCache. | 
| Modifier and Type | Method and Description | 
|---|---|
BlockCacheKey | 
LruCachedBlock.getCacheKey()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
MemcachedBlockCache.cacheBlock(BlockCacheKey cacheKey,
          Cacheable buf)  | 
void | 
BlockCache.cacheBlock(BlockCacheKey cacheKey,
          Cacheable buf)
Add block to cache (defaults to not in-memory). 
 | 
void | 
CombinedBlockCache.cacheBlock(BlockCacheKey cacheKey,
          Cacheable buf)  | 
void | 
LruBlockCache.cacheBlock(BlockCacheKey cacheKey,
          Cacheable buf)
Cache the block with the specified name and buffer. 
 | 
void | 
MemcachedBlockCache.cacheBlock(BlockCacheKey cacheKey,
          Cacheable buf,
          boolean inMemory,
          boolean cacheDataInL1)  | 
void | 
BlockCache.cacheBlock(BlockCacheKey cacheKey,
          Cacheable buf,
          boolean inMemory,
          boolean cacheDataInL1)
Add block to cache. 
 | 
void | 
CombinedBlockCache.cacheBlock(BlockCacheKey cacheKey,
          Cacheable buf,
          boolean inMemory,
          boolean cacheDataInL1)  | 
void | 
LruBlockCache.cacheBlock(BlockCacheKey cacheKey,
          Cacheable buf,
          boolean inMemory,
          boolean cacheDataInL1)
Cache the block with the specified name and buffer. 
 | 
void | 
InclusiveCombinedBlockCache.cacheBlock(BlockCacheKey cacheKey,
          Cacheable buf,
          boolean inMemory,
          boolean cacheDataInL1)  | 
boolean | 
LruBlockCache.containsBlock(BlockCacheKey cacheKey)
Whether the cache contains block with specified cacheKey 
 | 
boolean | 
MemcachedBlockCache.evictBlock(BlockCacheKey cacheKey)  | 
boolean | 
BlockCache.evictBlock(BlockCacheKey cacheKey)
Evict block from cache. 
 | 
boolean | 
CombinedBlockCache.evictBlock(BlockCacheKey cacheKey)  | 
boolean | 
LruBlockCache.evictBlock(BlockCacheKey cacheKey)  | 
Cacheable | 
MemcachedBlockCache.getBlock(BlockCacheKey cacheKey,
        boolean caching,
        boolean repeat,
        boolean updateCacheMetrics)  | 
Cacheable | 
BlockCache.getBlock(BlockCacheKey cacheKey,
        boolean caching,
        boolean repeat,
        boolean updateCacheMetrics)
Fetch block from cache. 
 | 
Cacheable | 
CombinedBlockCache.getBlock(BlockCacheKey cacheKey,
        boolean caching,
        boolean repeat,
        boolean updateCacheMetrics)  | 
Cacheable | 
LruBlockCache.getBlock(BlockCacheKey cacheKey,
        boolean caching,
        boolean repeat,
        boolean updateCacheMetrics)
Get the buffer of the block with the specified name. 
 | 
Cacheable | 
InclusiveCombinedBlockCache.getBlock(BlockCacheKey cacheKey,
        boolean caching,
        boolean repeat,
        boolean updateCacheMetrics)  | 
static boolean | 
BlockCacheUtil.shouldReplaceExistingCacheBlock(BlockCache blockCache,
                               BlockCacheKey cacheKey,
                               Cacheable newBlock)
Because of the region splitting, it's possible that the split key locate in the middle of a
 block. 
 | 
static int | 
BlockCacheUtil.validateBlockAddition(Cacheable existing,
                     Cacheable newBlock,
                     BlockCacheKey cacheKey)
Validate that the existing and newBlock are the same without including the nextBlockMetadata,
 if not, throw an exception. 
 | 
| Constructor and Description | 
|---|
LruCachedBlock(BlockCacheKey cacheKey,
              Cacheable buf,
              long accessTime)  | 
LruCachedBlock(BlockCacheKey cacheKey,
              Cacheable buf,
              long accessTime,
              boolean inMemory)  | 
| Modifier and Type | Method and Description | 
|---|---|
Map.Entry<BlockCacheKey,org.apache.hadoop.hbase.io.hfile.bucket.BucketCache.BucketEntry> | 
CachedEntryQueue.poll()  | 
Map.Entry<BlockCacheKey,org.apache.hadoop.hbase.io.hfile.bucket.BucketCache.BucketEntry> | 
CachedEntryQueue.pollLast()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
BucketCache.cacheBlock(BlockCacheKey cacheKey,
          Cacheable buf)
Cache the block with the specified name and buffer. 
 | 
void | 
BucketCache.cacheBlock(BlockCacheKey cacheKey,
          Cacheable cachedItem,
          boolean inMemory,
          boolean cacheDataInL1)
Cache the block with the specified name and buffer. 
 | 
void | 
BucketCache.cacheBlockWithWait(BlockCacheKey cacheKey,
                  Cacheable cachedItem,
                  boolean inMemory,
                  boolean cacheDataInL1,
                  boolean wait)
Cache the block to ramCache 
 | 
boolean | 
BucketCache.evictBlock(BlockCacheKey cacheKey)  | 
Cacheable | 
BucketCache.getBlock(BlockCacheKey key,
        boolean caching,
        boolean repeat,
        boolean updateCacheMetrics)
Get the buffer of the block with the specified key. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
CachedEntryQueue.add(Map.Entry<BlockCacheKey,org.apache.hadoop.hbase.io.hfile.bucket.BucketCache.BucketEntry> entry)
Attempt to add the specified entry to this queue. 
 | 
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.