Uses of Interface
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
Modifier and TypeMethodDescriptionOptional<org.apache.hadoop.hbase.io.hfile.BlockCache>
MockRegionServerServices.getBlockCache()
Modifier and TypeMethodDescriptionstatic org.apache.hadoop.hbase.regionserver.HRegion
HBaseTestingUtility.createRegionAndWAL
(org.apache.hadoop.hbase.client.RegionInfo info, org.apache.hadoop.fs.Path rootDir, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.TableDescriptor htd, org.apache.hadoop.hbase.io.hfile.BlockCache blockCache) Deprecated.Create a region with it's own WAL.org.apache.hadoop.hbase.regionserver.HRegion
HBaseTestingUtility.createTestRegion
(String tableName, org.apache.hadoop.hbase.client.ColumnFamilyDescriptor cd, org.apache.hadoop.hbase.io.hfile.BlockCache blockCache) Deprecated. -
Uses of org.apache.hadoop.hbase.io.hfile.BlockCache in org.apache.hadoop.hbase.io.hfile
Modifier and TypeInterfaceDescriptioninterface
org.apache.hadoop.hbase.io.hfile.FirstLevelBlockCache
In-memory BlockCache that may be backed by secondary layer(s).interface
org.apache.hadoop.hbase.io.hfile.ResizableBlockCache
BlockCache which is resizable.Modifier and TypeClassDescriptionclass
org.apache.hadoop.hbase.io.hfile.CombinedBlockCache
CombinedBlockCache is an abstraction layer that combinesFirstLevelBlockCache
andBucketCache
.class
org.apache.hadoop.hbase.io.hfile.InclusiveCombinedBlockCache
class
org.apache.hadoop.hbase.io.hfile.IndexOnlyLruBlockCache
An on heap block cache implementation extended LruBlockCache and only cache index block.class
org.apache.hadoop.hbase.io.hfile.LruAdaptiveBlockCache
This realisation improve performance of classical LRU cache up to 3 times via reduce GC job.class
org.apache.hadoop.hbase.io.hfile.LruBlockCache
A block cache implementation that is memory-aware usingHeapSize
, memory-bound using an LRU eviction algorithm, and concurrent: backed by aConcurrentHashMap
and 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.class
org.apache.hadoop.hbase.io.hfile.MemcachedBlockCache
Class to store blocks into memcached.final class
org.apache.hadoop.hbase.io.hfile.TinyLfuBlockCache
A block cache that is memory-aware usingHeapSize
, memory bounded using the W-TinyLFU eviction algorithm, and concurrent.Modifier and TypeFieldDescriptionprotected final org.apache.hadoop.hbase.io.hfile.BlockCache
CombinedBlockCache.l2Cache
Modifier and TypeMethodDescriptionstatic org.apache.hadoop.hbase.io.hfile.BlockCache
BlockCacheFactory.createBlockCache
(org.apache.hadoop.conf.Configuration conf) static org.apache.hadoop.hbase.io.hfile.BlockCache
BlockCacheFactory.createBlockCache
(org.apache.hadoop.conf.Configuration conf, Map<String, org.apache.hadoop.hbase.regionserver.HRegion> onlineRegions) 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.BlockCache
CombinedBlockCache.getSecondLevelCache()
Modifier and TypeMethodDescriptionOptional<org.apache.hadoop.hbase.io.hfile.BlockCache>
CacheConfig.getBlockCache()
Returns the block cache.Modifier and TypeMethodDescriptionstatic org.apache.hadoop.hbase.io.hfile.BlockCacheUtil.CachedBlocksByFile
BlockCacheUtil.getLoadedCachedBlocksByFile
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.io.hfile.BlockCache bc) Get aBlockCacheUtil.CachedBlocksByFile
instance and load it up by iterating content inBlockCache
.void
FirstLevelBlockCache.setVictimCache
(org.apache.hadoop.hbase.io.hfile.BlockCache victimCache) Specifies the secondary cache.void
LruAdaptiveBlockCache.setVictimCache
(org.apache.hadoop.hbase.io.hfile.BlockCache victimCache) void
LruBlockCache.setVictimCache
(org.apache.hadoop.hbase.io.hfile.BlockCache victimCache) void
TinyLfuBlockCache.setVictimCache
(org.apache.hadoop.hbase.io.hfile.BlockCache victimCache) static boolean
BlockCacheUtil.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 String
BlockCacheUtil.toJSON
(org.apache.hadoop.hbase.io.hfile.BlockCache bc) Returns JSON string ofbc
content.ModifierConstructorDescriptionCacheConfig
(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
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.io.hfile.BlockCache
HRegion.getBlockCache()
Modifier 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.Modifier and TypeMethodDescriptionvoid
HRegion.setBlockCache
(org.apache.hadoop.hbase.io.hfile.BlockCache blockCache) Only used for unit test which doesn't start region server.