| 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. |
| Modifier and Type | Field and Description |
|---|---|
protected BlockCache |
CombinedBlockCache.l2Cache |
| Modifier and Type | Method and Description |
|---|---|
static BlockCache |
BlockCacheFactory.createBlockCache(org.apache.hadoop.conf.Configuration conf) |
BlockCache[] |
CombinedBlockCache.getBlockCaches() |
BlockCache[] |
LruBlockCache.getBlockCaches() |
BlockCache[] |
BlockCache.getBlockCaches() |
| 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. |
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 |
|---|
CacheConfig(org.apache.hadoop.conf.Configuration conf,
BlockCache blockCache) |
CacheConfig(org.apache.hadoop.conf.Configuration conf,
ColumnFamilyDescriptor family,
BlockCache blockCache)
Create a cache configuration using the specified configuration object and
family descriptor.
|
CombinedBlockCache(LruBlockCache onHeapCache,
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() |
| Modifier and Type | Method and Description |
|---|---|
BlockCache |
HRegion.getBlockCache() |
| Modifier and Type | Method and Description |
|---|---|
Optional<BlockCache> |
HRegionServer.getBlockCache()
May be null if this is a master which not carry table.
|
Optional<BlockCache> |
RegionServerServices.getBlockCache() |
| Modifier and Type | Method and Description |
|---|---|
void |
HRegion.setBlockCache(BlockCache blockCache)
Only used for unit test which doesn't start region server.
|
| Modifier and Type | Method and Description |
|---|---|
BlockCache |
BlockCacheTmpl.ImplData.getBc() |
BlockCache |
BlockCacheViewTmpl.ImplData.getBlockCache() |
| Modifier and Type | Method and Description |
|---|---|
org.jamon.Renderer |
BlockCacheTmpl.makeRenderer(CacheConfig cacheConfig,
org.apache.hadoop.conf.Configuration config,
BlockCache bc) |
org.jamon.Renderer |
BlockCacheViewTmpl.makeRenderer(CacheConfig cacheConfig,
org.apache.hadoop.conf.Configuration conf,
String bcn,
String bcv,
BlockCache blockCache) |
void |
BlockCacheTmpl.render(Writer jamonWriter,
CacheConfig cacheConfig,
org.apache.hadoop.conf.Configuration config,
BlockCache bc) |
void |
BlockCacheViewTmpl.render(Writer jamonWriter,
CacheConfig cacheConfig,
org.apache.hadoop.conf.Configuration conf,
String bcn,
String bcv,
BlockCache blockCache) |
void |
BlockCacheTmpl.renderNoFlush(Writer jamonWriter,
CacheConfig cacheConfig,
org.apache.hadoop.conf.Configuration config,
BlockCache bc) |
void |
BlockCacheViewTmpl.renderNoFlush(Writer jamonWriter,
CacheConfig cacheConfig,
org.apache.hadoop.conf.Configuration conf,
String bcn,
String bcv,
BlockCache blockCache) |
void |
BlockCacheTmpl.ImplData.setBc(BlockCache bc) |
void |
BlockCacheViewTmpl.ImplData.setBlockCache(BlockCache blockCache) |
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.