@InterfaceAudience.Private public class IndexOnlyLruBlockCache extends LruBlockCache
ClientSideRegionScanner
that normally considers to be used by client resides out of the region server, e.g. a container
of a map reduce job.LruBlockCache.EvictionThread, LruBlockCache.StatisticsThreadCACHE_FIXED_OVERHEAD, DEFAULT_ACCEPTABLE_FACTOR, DEFAULT_CONCURRENCY_LEVEL, DEFAULT_LOAD_FACTOR, LRU_HARD_CAPACITY_LIMIT_FACTOR_CONFIG_NAME| Constructor and Description |
|---|
IndexOnlyLruBlockCache(long maxSize,
long blockSize,
boolean evictionThread,
org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
void |
cacheBlock(BlockCacheKey cacheKey,
Cacheable buf,
boolean inMemory)
Cache only index block with the specified name and buffer
|
acceptableSize, cacheBlock, clearCache, containsBlock, evict, evictBlock, evictBlock, evictBlocksByHfileName, getBlock, getBlockCaches, getBlockCount, getBloomBlockCount, getCachedFileNamesForTest, getCurrentBloomSize, getCurrentDataSize, getCurrentIndexSize, getCurrentSize, getDataBlockCount, getEncodingCountsForTest, getEvictionThread, getFreeSize, getIndexBlockCount, getMapForTests, getMaxSize, getOverhead, getStats, heapSize, isEvictionInProgress, iterator, logStats, setMaxSize, setVictimCache, shutdown, size, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisMetaBlockforEach, spliteratorpublic IndexOnlyLruBlockCache(long maxSize, long blockSize, boolean evictionThread, org.apache.hadoop.conf.Configuration conf)
public void cacheBlock(BlockCacheKey cacheKey, Cacheable buf, boolean inMemory)
cacheBlock in interface BlockCachecacheBlock in class LruBlockCachecacheKey - block's cache keybuf - block bufferinMemory - if block is in-memoryCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.