@InterfaceAudience.Private public interface FirstLevelBlockCache extends ResizableBlockCache, HeapSize
Modifier and Type | Method and Description |
---|---|
boolean |
containsBlock(BlockCacheKey cacheKey)
Whether the cache contains the block with specified cacheKey
|
void |
setVictimCache(BlockCache victimCache)
Specifies the secondary cache.
|
setMaxSize
blockFitsIntoTheCache, cacheBlock, cacheBlock, cacheBlock, evictBlock, evictBlocksByHfileName, getBlock, getBlock, getBlockCaches, getBlockCount, getBlockSize, getCurrentDataSize, getCurrentSize, getDataBlockCount, getFreeSize, getFullyCachedFiles, getMaxSize, getRegionCachedInfo, getStats, isAlreadyCached, isMetaBlock, iterator, notifyFileCachingCompleted, shouldCacheFile, shutdown, size
forEach, spliterator
boolean containsBlock(BlockCacheKey cacheKey)
cacheKey
- cache key for the blockvoid setVictimCache(BlockCache victimCache)
victimCache
- the second level cacheIllegalArgumentException
- if the victim cache had already been setCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.