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 . |
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, 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 |
---|---|
protected BlockCache |
CombinedBlockCache.l2Cache |
Modifier and Type | Method and Description |
---|---|
BlockCache |
CacheConfig.getBlockCache()
Returns the block cache.
|
BlockCache[] |
MemcachedBlockCache.getBlockCaches() |
BlockCache[] |
LruBlockCache.getBlockCaches() |
BlockCache[] |
CombinedBlockCache.getBlockCaches() |
BlockCache[] |
BlockCache.getBlockCaches() |
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 String |
BlockCacheUtil.toJSON(BlockCache bc) |
Constructor and Description |
---|
CombinedBlockCache(LruBlockCache lruCache,
BlockCache l2Cache) |
InclusiveCombinedBlockCache(LruBlockCache l1,
BlockCache l2) |
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() |
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.