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 | |
org.apache.hadoop.hbase.tmpl.regionserver |
Modifier and Type | Interface and Description |
---|---|
interface |
ResizableBlockCache
BlockCache which is resizable.
|
Modifier and Type | Class and Description |
---|---|
class |
CombinedBlockCache
CombinedBlockCache is an abstraction layer that combines
LruBlockCache and BucketCache . |
class |
InclusiveCombinedBlockCache |
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.
|
Modifier and Type | Field and Description |
---|---|
(package private) BlockCache[] |
BlockCachesIterator.bcs |
private BlockCache |
CacheConfig.blockCache
Local reference to the block cache, null if completely disabled
|
(package private) static BlockCache |
CacheConfig.GLOBAL_BLOCK_CACHE_INSTANCE
Static reference to the block cache, or null if no caching should be used
at all.
|
private static BlockCache |
CacheConfig.L2_CACHE_INSTANCE |
protected BlockCache |
CombinedBlockCache.l2Cache |
private BlockCache |
LruBlockCache.victimHandler
Where to send victims (blocks evicted/missing from the cache).
|
Modifier and Type | Field and Description |
---|---|
(package private) Class<? extends BlockCache> |
CacheConfig.ExternalBlockCaches.clazz |
Modifier and Type | Method and Description |
---|---|
BlockCache |
CacheConfig.getBlockCache()
Returns the block cache.
|
BlockCache[] |
LruBlockCache.getBlockCaches() |
BlockCache[] |
BlockCache.getBlockCaches() |
BlockCache[] |
CombinedBlockCache.getBlockCaches() |
BlockCache[] |
MemcachedBlockCache.getBlockCaches() |
private static BlockCache |
CacheConfig.getExternalBlockcache(org.apache.hadoop.conf.Configuration c) |
static BlockCache |
CacheConfig.instantiateBlockCache(org.apache.hadoop.conf.Configuration conf)
Returns the block cache or
null in case none should be used. |
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 . |
void |
LruBlockCache.setVictimCache(BlockCache handler) |
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) |
Constructor and Description |
---|
BlockCachesIterator(BlockCache[] blockCaches) |
CacheConfig(BlockCache blockCache,
boolean cacheDataOnRead,
boolean inMemory,
boolean cacheDataOnWrite,
boolean cacheIndexesOnWrite,
boolean cacheBloomsOnWrite,
boolean evictOnClose,
boolean cacheDataCompressed,
boolean prefetchOnOpen,
boolean dropBehindCompaction)
Create a block cache configuration with the specified cache and configuration parameters.
|
CombinedBlockCache(LruBlockCache onHeapCache,
BlockCache l2Cache) |
InclusiveCombinedBlockCache(LruBlockCache 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 |
Modifier and Type | Method and Description |
---|---|
private void |
BlockCacheTmplImpl.__jamon_innerUnit__bc_l(Writer jamonWriter,
BlockCache bc,
String name,
boolean evictions) |
private void |
BlockCacheTmplImpl.__jamon_innerUnit__block_cache(Writer jamonWriter,
BlockCache bc,
String name,
boolean evictions) |
private void |
BlockCacheTmplImpl.__jamon_innerUnit__evictions_tmpl(Writer jamonWriter,
BlockCache bc) |
private void |
BlockCacheTmplImpl.__jamon_innerUnit__hits_tmpl(Writer jamonWriter,
BlockCache bc) |
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.