| Package | Description |
|---|---|
| org.apache.hadoop.hbase.io.hfile |
Provides implementations of
HFile and HFile
BlockCache. |
| org.apache.hadoop.hbase.io.hfile.bucket |
Provides
BucketCache, an implementation of
BlockCache. |
| org.apache.hadoop.hbase.regionserver |
| Modifier and Type | Interface and Description |
|---|---|
interface |
FirstLevelBlockCache
In-memory BlockCache that may be backed by secondary layer(s).
|
interface |
ResizableBlockCache
BlockCache which is resizable.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CombinedBlockCache
CombinedBlockCache is an abstraction layer that combines
FirstLevelBlockCache and
BucketCache. |
class |
InclusiveCombinedBlockCache |
class |
IndexOnlyLruBlockCache
An on heap block cache implementation extended LruBlockCache and only cache index block.
|
class |
LruAdaptiveBlockCache
This realisation improve performance of classical LRU cache up to 3 times via reduce GC
job.
|
class |
LruBlockCache
A block cache implementation that is memory-aware using
HeapSize, memory-bound using an
LRU eviction algorithm, and concurrent: backed by a ConcurrentHashMap and with a
non-blocking eviction thread giving constant-time LruBlockCache.cacheBlock(org.apache.hadoop.hbase.io.hfile.BlockCacheKey, org.apache.hadoop.hbase.io.hfile.Cacheable, boolean) and LruBlockCache.getBlock(org.apache.hadoop.hbase.io.hfile.BlockCacheKey, boolean, boolean, boolean)
operations. |
class |
MemcachedBlockCache
Class to store blocks into memcached.
|
class |
TinyLfuBlockCache
A block cache that is memory-aware using
HeapSize, memory bounded using the W-TinyLFU
eviction algorithm, and concurrent. |
| Modifier and Type | Field and Description |
|---|---|
(package private) BlockCache[] |
BlockCachesIterator.bcs |
private BlockCache |
CacheConfig.blockCache |
protected BlockCache |
CombinedBlockCache.l2Cache |
private BlockCache |
TinyLfuBlockCache.victimCache |
private BlockCache |
LruBlockCache.victimHandler
Where to send victims (blocks evicted/missing from the cache).
|
private BlockCache |
LruAdaptiveBlockCache.victimHandler
Where to send victims (blocks evicted/missing from the cache).
|
| Modifier and Type | Field and Description |
|---|---|
(package private) Class<? extends BlockCache> |
BlockCacheFactory.ExternalBlockCaches.clazz |
| Modifier and Type | Method and Description |
|---|---|
static BlockCache |
BlockCacheFactory.createBlockCache(org.apache.hadoop.conf.Configuration conf) |
private static BlockCache |
BlockCacheFactory.createExternalBlockcache(org.apache.hadoop.conf.Configuration c) |
BlockCache[] |
LruBlockCache.getBlockCaches() |
BlockCache[] |
LruAdaptiveBlockCache.getBlockCaches() |
BlockCache[] |
BlockCache.getBlockCaches()
Returns The list of sub blockcaches that make up this one; returns null if no sub caches.
|
BlockCache[] |
TinyLfuBlockCache.getBlockCaches() |
BlockCache[] |
CombinedBlockCache.getBlockCaches() |
BlockCache[] |
MemcachedBlockCache.getBlockCaches() |
BlockCache |
CombinedBlockCache.getSecondLevelCache() |
| Modifier and Type | Method and Description |
|---|---|
Optional<BlockCache> |
CacheConfig.getBlockCache()
Returns the block cache.
|
| Modifier and Type | Method and Description |
|---|---|
static BlockCacheUtil.CachedBlocksByFile |
BlockCacheUtil.getLoadedCachedBlocksByFile(org.apache.hadoop.conf.Configuration conf,
BlockCache bc)
Get a
BlockCacheUtil.CachedBlocksByFile instance and load it up by iterating content in
BlockCache. |
private void |
HFileReaderImpl.returnAndEvictBlock(BlockCache cache,
BlockCacheKey cacheKey,
Cacheable block) |
void |
LruBlockCache.setVictimCache(BlockCache victimCache) |
void |
LruAdaptiveBlockCache.setVictimCache(BlockCache victimCache) |
void |
FirstLevelBlockCache.setVictimCache(BlockCache victimCache)
Specifies the secondary cache.
|
void |
TinyLfuBlockCache.setVictimCache(BlockCache victimCache) |
static boolean |
BlockCacheUtil.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 String |
BlockCacheUtil.toJSON(BlockCache bc)
Returns JSON string of
bc content. |
| Constructor and Description |
|---|
BlockCachesIterator(BlockCache[] blockCaches) |
CacheConfig(org.apache.hadoop.conf.Configuration conf,
BlockCache blockCache) |
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.
|
CombinedBlockCache(FirstLevelBlockCache l1Cache,
BlockCache l2Cache) |
InclusiveCombinedBlockCache(FirstLevelBlockCache l1,
BlockCache l2) |
| Constructor and Description |
|---|
ExternalBlockCaches(Class<? extends BlockCache> clazz) |
| Modifier and Type | Class and Description |
|---|---|
class |
BucketCache
BucketCache uses
BucketAllocator to allocate/free blocks, and uses BucketCache#ramCache
and BucketCache#backingMap in order to determine if a given element is in the cache. |
| Modifier and Type | Method and Description |
|---|---|
BlockCache[] |
BucketCache.getBlockCaches() |
| Modifier and Type | Field and Description |
|---|---|
private BlockCache |
MetricsRegionServerWrapperImpl.blockCache |
private BlockCache |
HRegion.blockCache |
private BlockCache |
HRegionServer.blockCache |
private BlockCache |
MetricsRegionServerWrapperImpl.l1Cache |
private BlockCache |
MetricsRegionServerWrapperImpl.l2Cache |
| Modifier and Type | Method and Description |
|---|---|
BlockCache |
HRegion.getBlockCache() |
| Modifier and Type | Method and Description |
|---|---|
Optional<BlockCache> |
RegionServerServices.getBlockCache()
Returns The block cache instance.
|
Optional<BlockCache> |
HRegionServer.getBlockCache()
May be null if this is a master which not carry table.
|
| Modifier and Type | Method and Description |
|---|---|
void |
HRegion.setBlockCache(BlockCache blockCache)
Only used for unit test which doesn't start region server.
|
private ResizableBlockCache |
HeapMemoryManager.toResizableBlockCache(BlockCache blockCache) |
| Constructor and Description |
|---|
HeapMemoryManager(BlockCache blockCache,
FlushRequester memStoreFlusher,
Server server,
RegionServerAccounting regionServerAccounting) |
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.