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 | Field and Description |
---|---|
private BlockCacheKey |
LruCachedBlock.cacheKey |
Modifier and Type | Field and Description |
---|---|
private Map<BlockCacheKey,LruCachedBlock> |
LruBlockCache.map
Concurrent map (the cache)
|
Modifier and Type | Method and Description |
---|---|
BlockCacheKey |
LruCachedBlock.getCacheKey() |
Modifier and Type | Method and Description |
---|---|
(package private) Map<BlockCacheKey,LruCachedBlock> |
LruBlockCache.getMapForTests() |
Modifier and Type | Method and Description |
---|---|
void |
LruBlockCache.cacheBlock(BlockCacheKey cacheKey,
Cacheable buf)
Cache the block with the specified name and buffer.
|
void |
BlockCache.cacheBlock(BlockCacheKey cacheKey,
Cacheable buf)
Add block to cache (defaults to not in-memory).
|
void |
CombinedBlockCache.cacheBlock(BlockCacheKey cacheKey,
Cacheable buf) |
void |
MemcachedBlockCache.cacheBlock(BlockCacheKey cacheKey,
Cacheable buf) |
void |
LruBlockCache.cacheBlock(BlockCacheKey cacheKey,
Cacheable buf,
boolean inMemory)
Cache the block with the specified name and buffer.
|
void |
BlockCache.cacheBlock(BlockCacheKey cacheKey,
Cacheable buf,
boolean inMemory)
Add block to cache.
|
void |
CombinedBlockCache.cacheBlock(BlockCacheKey cacheKey,
Cacheable buf,
boolean inMemory) |
void |
InclusiveCombinedBlockCache.cacheBlock(BlockCacheKey cacheKey,
Cacheable buf,
boolean inMemory) |
void |
MemcachedBlockCache.cacheBlock(BlockCacheKey cacheKey,
Cacheable buf,
boolean inMemory) |
boolean |
LruBlockCache.containsBlock(BlockCacheKey cacheKey)
Whether the cache contains block with specified cacheKey
|
boolean |
LruBlockCache.evictBlock(BlockCacheKey cacheKey) |
boolean |
BlockCache.evictBlock(BlockCacheKey cacheKey)
Evict block from cache.
|
boolean |
CombinedBlockCache.evictBlock(BlockCacheKey cacheKey) |
boolean |
InclusiveCombinedBlockCache.evictBlock(BlockCacheKey cacheKey) |
boolean |
MemcachedBlockCache.evictBlock(BlockCacheKey cacheKey) |
Cacheable |
LruBlockCache.getBlock(BlockCacheKey cacheKey,
boolean caching,
boolean repeat,
boolean updateCacheMetrics)
Get the buffer of the block with the specified name.
|
Cacheable |
BlockCache.getBlock(BlockCacheKey cacheKey,
boolean caching,
boolean repeat,
boolean updateCacheMetrics)
Fetch block from cache.
|
Cacheable |
CombinedBlockCache.getBlock(BlockCacheKey cacheKey,
boolean caching,
boolean repeat,
boolean updateCacheMetrics) |
Cacheable |
InclusiveCombinedBlockCache.getBlock(BlockCacheKey cacheKey,
boolean caching,
boolean repeat,
boolean updateCacheMetrics) |
Cacheable |
MemcachedBlockCache.getBlock(BlockCacheKey cacheKey,
boolean caching,
boolean repeat,
boolean updateCacheMetrics) |
private HFileBlock |
HFileReaderImpl.getCachedBlock(BlockCacheKey cacheKey,
boolean cacheBlock,
boolean useLock,
boolean isCompaction,
boolean updateCacheMetrics,
BlockType expectedBlockType,
DataBlockEncoding expectedDataBlockEncoding)
Retrieve block from cache.
|
int |
CombinedBlockCache.getRefCount(BlockCacheKey cacheKey) |
default void |
BlockCache.returnBlock(BlockCacheKey cacheKey,
Cacheable block)
Called when the scanner using the block decides to return the block once its usage
is over.
|
void |
CombinedBlockCache.returnBlock(BlockCacheKey cacheKey,
Cacheable block) |
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 int |
BlockCacheUtil.validateBlockAddition(Cacheable existing,
Cacheable newBlock,
BlockCacheKey cacheKey)
Validate that the existing and newBlock are the same without including the nextBlockMetadata,
if not, throw an exception.
|
Constructor and Description |
---|
LruCachedBlock(BlockCacheKey cacheKey,
Cacheable buf,
long accessTime) |
LruCachedBlock(BlockCacheKey cacheKey,
Cacheable buf,
long accessTime,
boolean inMemory) |
Modifier and Type | Field and Description |
---|---|
private BlockCacheKey |
BucketCache.RAMQueueEntry.key |
Modifier and Type | Field and Description |
---|---|
(package private) ConcurrentMap<BlockCacheKey,BucketCache.BucketEntry> |
BucketCache.backingMap |
private NavigableSet<BlockCacheKey> |
BucketCache.blocksByHFile |
private org.apache.hbase.thirdparty.com.google.common.collect.MinMaxPriorityQueue<Map.Entry<BlockCacheKey,BucketCache.BucketEntry>> |
CachedEntryQueue.queue |
(package private) ConcurrentMap<BlockCacheKey,BucketCache.RAMQueueEntry> |
BucketCache.ramCache |
Modifier and Type | Method and Description |
---|---|
BlockCacheKey |
BucketCache.RAMQueueEntry.getKey() |
Modifier and Type | Method and Description |
---|---|
Map.Entry<BlockCacheKey,BucketCache.BucketEntry> |
CachedEntryQueue.poll() |
Map.Entry<BlockCacheKey,BucketCache.BucketEntry> |
CachedEntryQueue.pollLast() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
BucketCache.blockEvicted(BlockCacheKey cacheKey,
BucketCache.BucketEntry bucketEntry,
boolean decrementBlockNumber) |
void |
BucketCache.cacheBlock(BlockCacheKey cacheKey,
Cacheable buf)
Cache the block with the specified name and buffer.
|
void |
BucketCache.cacheBlock(BlockCacheKey cacheKey,
Cacheable cachedItem,
boolean inMemory)
Cache the block with the specified name and buffer.
|
private void |
BucketCache.cacheBlockWithWait(BlockCacheKey cacheKey,
Cacheable cachedItem,
boolean inMemory,
boolean wait)
Cache the block to ramCache
|
private void |
BucketCache.cacheBlockWithWaitInternal(BlockCacheKey cacheKey,
Cacheable cachedItem,
boolean inMemory,
boolean wait) |
private BucketCache.RAMQueueEntry |
BucketCache.checkRamCache(BlockCacheKey cacheKey) |
boolean |
BucketCache.evictBlock(BlockCacheKey cacheKey) |
boolean |
BucketCache.evictBlock(BlockCacheKey cacheKey,
boolean deletedBlock) |
private boolean |
BucketCache.forceEvict(BlockCacheKey cacheKey) |
Cacheable |
BucketCache.getBlock(BlockCacheKey key,
boolean caching,
boolean repeat,
boolean updateCacheMetrics)
Get the buffer of the block with the specified key.
|
int |
BucketCache.getRefCount(BlockCacheKey cacheKey) |
private void |
BucketCache.WriterThread.putIntoBackingMap(BlockCacheKey key,
BucketCache.BucketEntry bucketEntry)
Put the new bucket entry into backingMap.
|
void |
BucketCache.returnBlock(BlockCacheKey cacheKey,
Cacheable block) |
Modifier and Type | Method and Description |
---|---|
void |
CachedEntryQueue.add(Map.Entry<BlockCacheKey,BucketCache.BucketEntry> entry)
Attempt to add the specified entry to this queue.
|
void |
BucketCache.BucketEntryGroup.add(Map.Entry<BlockCacheKey,BucketCache.BucketEntry> block) |
Constructor and Description |
---|
RAMQueueEntry(BlockCacheKey bck,
Cacheable data,
long accessCounter,
boolean inMemory) |
Constructor and Description |
---|
BucketAllocator(long availableSpace,
int[] bucketSizes,
Map<BlockCacheKey,BucketCache.BucketEntry> map,
LongAdder realCacheSize)
Rebuild the allocator's data structures from a persisted map.
|
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.