@InterfaceAudience.Private public class BufferedBucketCache extends BucketCache
BucketCache with RAMBuffer to reduce GC pressure.DEFAULT_ERROR_TOLERATION_DURATION| Constructor and Description |
|---|
BufferedBucketCache(String ioEngineName,
long capacity,
int blockSize,
int[] bucketSizes,
int writerThreadNum,
int writerQLen,
String persistencePath,
int ioErrorsTolerationDuration,
org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
Cacheable |
getBlock(BlockCacheKey key,
boolean caching,
boolean repeat,
boolean updateCacheMetrics)
Get the buffer of the block with the specified key.
|
cacheBlock, cacheBlock, cacheBlockWithWait, evictBlock, evictBlocksByHfileName, getAllocator, getBlockCaches, getBlockCount, getCurrentDataSize, getCurrentSize, getDataBlockCount, getDeserialiserMap, getFreeSize, getIoEngine, getMaxSize, getRealCacheSize, getStats, heapSize, iterator, logStats, shutdown, size, startWriterThreadspublic BufferedBucketCache(String ioEngineName, long capacity, int blockSize, int[] bucketSizes, int writerThreadNum, int writerQLen, String persistencePath, int ioErrorsTolerationDuration, org.apache.hadoop.conf.Configuration conf) throws IOException
IOExceptionpublic Cacheable getBlock(BlockCacheKey key, boolean caching, boolean repeat, boolean updateCacheMetrics)
BucketCachegetBlock in interface BlockCachegetBlock in class BucketCachekey - block's cache keycaching - true if the caller caches blocks on cache missesrepeat - Whether this is a repeat lookup for the same blockupdateCacheMetrics - Whether we should update cache metrics or notCopyright © 2007–2022 The Apache Software Foundation. All rights reserved.