Uses of Interface
org.apache.hadoop.hbase.io.hfile.BlockCache
Packages that use org.apache.hadoop.hbase.io.hfile.BlockCache
Package
Description
Provides implementations of
HFile and HFile
BlockCache.-
Uses of org.apache.hadoop.hbase.io.hfile.BlockCache in org.apache.hadoop.hbase.io.hfile
Subinterfaces of org.apache.hadoop.hbase.io.hfile.BlockCache in in org.apache.hadoop.hbase.io.hfileModifier and TypeInterfaceDescriptioninterfaceorg.apache.hadoop.hbase.io.hfile.FirstLevelBlockCacheIn-memory BlockCache that may be backed by secondary layer(s).interfaceorg.apache.hadoop.hbase.io.hfile.ResizableBlockCacheBlockCache which is resizable.Classes in org.apache.hadoop.hbase.io.hfile that implement org.apache.hadoop.hbase.io.hfile.BlockCache in inModifier and TypeClassDescriptionclassorg.apache.hadoop.hbase.io.hfile.CombinedBlockCacheCombinedBlockCache is an abstraction layer that combinesFirstLevelBlockCacheandBucketCache.classorg.apache.hadoop.hbase.io.hfile.InclusiveCombinedBlockCacheclassorg.apache.hadoop.hbase.io.hfile.IndexOnlyLruBlockCacheAn on heap block cache implementation extended LruBlockCache and only cache index block.classorg.apache.hadoop.hbase.io.hfile.LruAdaptiveBlockCacheThis realisation improve performance of classical LRU cache up to 3 times via reduce GC job.classorg.apache.hadoop.hbase.io.hfile.LruBlockCacheA 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.classorg.apache.hadoop.hbase.io.hfile.MemcachedBlockCacheClass to store blocks into memcached.final classorg.apache.hadoop.hbase.io.hfile.TinyLfuBlockCacheA 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 org.apache.hadoop.hbase.io.hfile.BlockCache in inModifier and TypeFieldDescriptionprotected final org.apache.hadoop.hbase.io.hfile.BlockCacheCombinedBlockCache.l2CacheMethods in org.apache.hadoop.hbase.io.hfile that return org.apache.hadoop.hbase.io.hfile.BlockCache in inModifier and TypeMethodDescriptionstatic org.apache.hadoop.hbase.io.hfile.BlockCacheBlockCacheFactory.createBlockCache(org.apache.hadoop.conf.Configuration conf) org.apache.hadoop.hbase.io.hfile.BlockCache[]BlockCache.getBlockCaches()Returns The list of sub blockcaches that make up this one; returns null if no sub caches.org.apache.hadoop.hbase.io.hfile.BlockCache[]CombinedBlockCache.getBlockCaches()org.apache.hadoop.hbase.io.hfile.BlockCache[]LruAdaptiveBlockCache.getBlockCaches()org.apache.hadoop.hbase.io.hfile.BlockCache[]LruBlockCache.getBlockCaches()org.apache.hadoop.hbase.io.hfile.BlockCache[]MemcachedBlockCache.getBlockCaches()org.apache.hadoop.hbase.io.hfile.BlockCache[]TinyLfuBlockCache.getBlockCaches()org.apache.hadoop.hbase.io.hfile.BlockCacheCombinedBlockCache.getSecondLevelCache()Methods in org.apache.hadoop.hbase.io.hfile that return types with arguments of type org.apache.hadoop.hbase.io.hfile.BlockCache in inModifier and TypeMethodDescriptionOptional<org.apache.hadoop.hbase.io.hfile.BlockCache>CacheConfig.getBlockCache()Returns the block cache.Methods in org.apache.hadoop.hbase.io.hfile with parameters of type org.apache.hadoop.hbase.io.hfile.BlockCache in inModifier and TypeMethodDescriptionstatic org.apache.hadoop.hbase.io.hfile.BlockCacheUtil.CachedBlocksByFileBlockCacheUtil.getLoadedCachedBlocksByFile(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.io.hfile.BlockCache bc) Get aBlockCacheUtil.CachedBlocksByFileinstance and load it up by iterating content inBlockCache.voidFirstLevelBlockCache.setVictimCache(org.apache.hadoop.hbase.io.hfile.BlockCache victimCache) Specifies the secondary cache.voidLruAdaptiveBlockCache.setVictimCache(org.apache.hadoop.hbase.io.hfile.BlockCache victimCache) voidLruBlockCache.setVictimCache(org.apache.hadoop.hbase.io.hfile.BlockCache victimCache) voidTinyLfuBlockCache.setVictimCache(org.apache.hadoop.hbase.io.hfile.BlockCache victimCache) static booleanBlockCacheUtil.shouldReplaceExistingCacheBlock(org.apache.hadoop.hbase.io.hfile.BlockCache blockCache, org.apache.hadoop.hbase.io.hfile.BlockCacheKey cacheKey, org.apache.hadoop.hbase.io.hfile.Cacheable newBlock) Because of the region splitting, it's possible that the split key locate in the middle of a block.static StringBlockCacheUtil.toJSON(org.apache.hadoop.hbase.io.hfile.BlockCache bc) Returns JSON string ofbccontent.Constructors in org.apache.hadoop.hbase.io.hfile with parameters of type org.apache.hadoop.hbase.io.hfile.BlockCache in inModifierConstructorDescriptionCacheConfig(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.ColumnFamilyDescriptor family, org.apache.hadoop.hbase.io.hfile.BlockCache blockCache, org.apache.hadoop.hbase.io.ByteBuffAllocator byteBuffAllocator) Create a cache configuration using the specified configuration object and family descriptor.CacheConfig(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.io.hfile.BlockCache blockCache) CombinedBlockCache(org.apache.hadoop.hbase.io.hfile.FirstLevelBlockCache l1Cache, org.apache.hadoop.hbase.io.hfile.BlockCache l2Cache) InclusiveCombinedBlockCache(org.apache.hadoop.hbase.io.hfile.FirstLevelBlockCache l1, org.apache.hadoop.hbase.io.hfile.BlockCache l2) -
Uses of org.apache.hadoop.hbase.io.hfile.BlockCache in org.apache.hadoop.hbase.regionserver
Methods in org.apache.hadoop.hbase.regionserver that return org.apache.hadoop.hbase.io.hfile.BlockCache in inModifier and TypeMethodDescriptionorg.apache.hadoop.hbase.io.hfile.BlockCacheHRegion.getBlockCache()Methods in org.apache.hadoop.hbase.regionserver that return types with arguments of type org.apache.hadoop.hbase.io.hfile.BlockCache in inModifier and TypeMethodDescriptionOptional<org.apache.hadoop.hbase.io.hfile.BlockCache>HRegionServer.getBlockCache()May be null if this is a master which not carry table.Optional<org.apache.hadoop.hbase.io.hfile.BlockCache>RegionServerServices.getBlockCache()Returns The block cache instance.Methods in org.apache.hadoop.hbase.regionserver with parameters of type org.apache.hadoop.hbase.io.hfile.BlockCache in inModifier and TypeMethodDescriptionvoidHRegion.setBlockCache(org.apache.hadoop.hbase.io.hfile.BlockCache blockCache) Only used for unit test which doesn't start region server.