Uses of Interface
org.apache.hadoop.hbase.io.hfile.BlockCache
Packages that use BlockCache
Package
Description
Provides HBase Client
Provides implementations of
HFile and HFile
BlockCache.Provides
BucketCache, an implementation of
BlockCache.-
Uses of BlockCache in org.apache.hadoop.hbase
Methods in org.apache.hadoop.hbase that return types with arguments of type BlockCacheMethods in org.apache.hadoop.hbase with parameters of type BlockCacheModifier and TypeMethodDescriptionstatic HRegionHBaseTestingUtility.createRegionAndWAL(RegionInfo info, org.apache.hadoop.fs.Path rootDir, org.apache.hadoop.conf.Configuration conf, TableDescriptor htd, BlockCache blockCache) Deprecated.Create a region with it's own WAL.HBaseTestingUtility.createTestRegion(String tableName, ColumnFamilyDescriptor cd, BlockCache blockCache) Deprecated. -
Uses of BlockCache in org.apache.hadoop.hbase.client
Fields in org.apache.hadoop.hbase.client declared as BlockCache -
Uses of BlockCache in org.apache.hadoop.hbase.io.hfile
Subinterfaces of BlockCache in org.apache.hadoop.hbase.io.hfileModifier and TypeInterfaceDescriptioninterfaceIn-memory BlockCache that may be backed by secondary layer(s).interfaceBlockCache which is resizable.Classes in org.apache.hadoop.hbase.io.hfile that implement BlockCacheModifier and TypeClassDescriptionclassCombinedBlockCache is an abstraction layer that combinesFirstLevelBlockCacheandBucketCache.classclassAn on heap block cache implementation extended LruBlockCache and only cache index block.classThis realisation improve performance of classical LRU cache up to 3 times via reduce GC job.classA block cache implementation that is memory-aware usingHeapSize, memory-bound using an LRU eviction algorithm, and concurrent: backed by aConcurrentHashMapand with a non-blocking eviction thread giving constant-timeLruBlockCache.cacheBlock(org.apache.hadoop.hbase.io.hfile.BlockCacheKey, org.apache.hadoop.hbase.io.hfile.Cacheable, boolean)andLruBlockCache.getBlock(org.apache.hadoop.hbase.io.hfile.BlockCacheKey, boolean, boolean, boolean)operations.classClass to store blocks into memcached.final classA block cache that is memory-aware usingHeapSize, memory bounded using the W-TinyLFU eviction algorithm, and concurrent.Fields in org.apache.hadoop.hbase.io.hfile declared as BlockCacheModifier and TypeFieldDescription(package private) final BlockCache[]BlockCachesIterator.bcsprivate final BlockCacheCacheConfig.blockCacheprotected final BlockCacheCombinedBlockCache.l2Cacheprivate BlockCacheTinyLfuBlockCache.victimCacheprivate BlockCacheLruAdaptiveBlockCache.victimHandlerWhere to send victims (blocks evicted/missing from the cache).private BlockCacheLruBlockCache.victimHandlerWhere to send victims (blocks evicted/missing from the cache).Fields in org.apache.hadoop.hbase.io.hfile with type parameters of type BlockCacheModifier and TypeFieldDescription(package private) Class<? extends BlockCache>BlockCacheFactory.ExternalBlockCaches.clazzMethods in org.apache.hadoop.hbase.io.hfile that return BlockCacheModifier and TypeMethodDescriptionstatic BlockCacheBlockCacheFactory.createBlockCache(org.apache.hadoop.conf.Configuration conf) static BlockCacheBlockCacheFactory.createBlockCache(org.apache.hadoop.conf.Configuration conf, Map<String, HRegion> onlineRegions) private static BlockCacheBlockCacheFactory.createExternalBlockcache(org.apache.hadoop.conf.Configuration c) BlockCache.getBlockCaches()Returns The list of sub blockcaches that make up this one; returns null if no sub caches.CombinedBlockCache.getBlockCaches()LruAdaptiveBlockCache.getBlockCaches()LruBlockCache.getBlockCaches()MemcachedBlockCache.getBlockCaches()TinyLfuBlockCache.getBlockCaches()CombinedBlockCache.getSecondLevelCache()Methods in org.apache.hadoop.hbase.io.hfile that return types with arguments of type BlockCacheMethods in org.apache.hadoop.hbase.io.hfile with parameters of type BlockCacheModifier and TypeMethodDescriptionBlockCacheUtil.getLoadedCachedBlocksByFile(org.apache.hadoop.conf.Configuration conf, BlockCache bc) Get aBlockCacheUtil.CachedBlocksByFileinstance and load it up by iterating content inBlockCache.private voidHFileReaderImpl.returnAndEvictBlock(BlockCache cache, BlockCacheKey cacheKey, Cacheable block) voidFirstLevelBlockCache.setVictimCache(BlockCache victimCache) Specifies the secondary cache.voidLruAdaptiveBlockCache.setVictimCache(BlockCache victimCache) voidLruBlockCache.setVictimCache(BlockCache victimCache) voidTinyLfuBlockCache.setVictimCache(BlockCache victimCache) private booleanHFileWriterImpl.shouldCacheBlock(BlockCache cache, BlockCacheKey key) static booleanBlockCacheUtil.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 StringBlockCacheUtil.toJSON(BlockCache bc) Returns JSON string ofbccontent.private voidCombinedBlockCache.updateBlockMetrics(Cacheable block, BlockCacheKey key, BlockCache cache, boolean caching) Constructors in org.apache.hadoop.hbase.io.hfile with parameters of type BlockCacheModifierConstructorDescription(package private)BlockCachesIterator(BlockCache[] blockCaches) CacheConfig(org.apache.hadoop.conf.Configuration conf, ColumnFamilyDescriptor family, BlockCache blockCache, ByteBuffAllocator byteBuffAllocator) Create a cache configuration using the specified configuration object and family descriptor.CacheConfig(org.apache.hadoop.conf.Configuration conf, BlockCache blockCache) CombinedBlockCache(FirstLevelBlockCache l1Cache, BlockCache l2Cache) Constructor parameters in org.apache.hadoop.hbase.io.hfile with type arguments of type BlockCache -
Uses of BlockCache in org.apache.hadoop.hbase.io.hfile.bucket
Classes in org.apache.hadoop.hbase.io.hfile.bucket that implement BlockCacheModifier and TypeClassDescriptionclassBucketCache usesBucketAllocatorto allocate/free blocks, and uses BucketCache#ramCache and BucketCache#backingMap in order to determine if a given element is in the cache.Methods in org.apache.hadoop.hbase.io.hfile.bucket that return BlockCache -
Uses of BlockCache in org.apache.hadoop.hbase.regionserver
Fields in org.apache.hadoop.hbase.regionserver declared as BlockCacheModifier and TypeFieldDescriptionprivate BlockCacheHRegion.blockCacheprivate BlockCacheHRegionServer.blockCacheprivate BlockCacheMetricsRegionServerWrapperImpl.blockCacheprivate BlockCacheMetricsRegionServerWrapperImpl.l1Cacheprivate BlockCacheMetricsRegionServerWrapperImpl.l2CacheMethods in org.apache.hadoop.hbase.regionserver that return BlockCacheMethods in org.apache.hadoop.hbase.regionserver that return types with arguments of type BlockCacheModifier and TypeMethodDescriptionHRegionServer.getBlockCache()May be null if this is a master which not carry table.RegionServerServices.getBlockCache()Returns The block cache instance.Methods in org.apache.hadoop.hbase.regionserver with parameters of type BlockCacheModifier and TypeMethodDescriptionvoidHRegion.setBlockCache(BlockCache blockCache) Only used for unit test which doesn't start region server.private ResizableBlockCacheHeapMemoryManager.toResizableBlockCache(BlockCache blockCache) Constructors in org.apache.hadoop.hbase.regionserver with parameters of type BlockCacheModifierConstructorDescription(package private)HeapMemoryManager(BlockCache blockCache, FlushRequester memStoreFlusher, Server server, RegionServerAccounting regionServerAccounting)