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 |
CombinedBlockCache.cacheBlock(BlockCacheKey cacheKey,
Cacheable buf) |
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 |
MemcachedBlockCache.cacheBlock(BlockCacheKey cacheKey,
Cacheable buf) |
void |
CombinedBlockCache.cacheBlock(BlockCacheKey cacheKey,
Cacheable buf,
boolean inMemory,
boolean cacheDataInL1) |
void |
LruBlockCache.cacheBlock(BlockCacheKey cacheKey,
Cacheable buf,
boolean inMemory,
boolean cacheDataInL1)
Cache the block with the specified name and buffer.
|
void |
InclusiveCombinedBlockCache.cacheBlock(BlockCacheKey cacheKey,
Cacheable buf,
boolean inMemory,
boolean cacheDataInL1) |
void |
BlockCache.cacheBlock(BlockCacheKey cacheKey,
Cacheable buf,
boolean inMemory,
boolean cacheDataInL1)
Add block to cache.
|
void |
MemcachedBlockCache.cacheBlock(BlockCacheKey cacheKey,
Cacheable buf,
boolean inMemory,
boolean cacheDataInL1) |
boolean |
LruBlockCache.containsBlock(BlockCacheKey cacheKey)
Whether the cache contains block with specified cacheKey
|
boolean |
CombinedBlockCache.evictBlock(BlockCacheKey cacheKey) |
boolean |
LruBlockCache.evictBlock(BlockCacheKey cacheKey) |
boolean |
BlockCache.evictBlock(BlockCacheKey cacheKey)
Evict block from cache.
|
boolean |
MemcachedBlockCache.evictBlock(BlockCacheKey cacheKey) |
Cacheable |
CombinedBlockCache.getBlock(BlockCacheKey cacheKey,
boolean caching,
boolean repeat,
boolean updateCacheMetrics) |
Cacheable |
LruBlockCache.getBlock(BlockCacheKey cacheKey,
boolean caching,
boolean repeat,
boolean updateCacheMetrics)
Get the buffer of the block with the specified name.
|
Cacheable |
InclusiveCombinedBlockCache.getBlock(BlockCacheKey cacheKey,
boolean caching,
boolean repeat,
boolean updateCacheMetrics) |
Cacheable |
BlockCache.getBlock(BlockCacheKey cacheKey,
boolean caching,
boolean repeat,
boolean updateCacheMetrics)
Fetch block from cache.
|
Cacheable |
MemcachedBlockCache.getBlock(BlockCacheKey cacheKey,
boolean caching,
boolean repeat,
boolean updateCacheMetrics) |
private HFileBlock |
HFileReaderV2.getCachedBlock(BlockCacheKey cacheKey,
boolean cacheBlock,
boolean useLock,
boolean isCompaction,
boolean updateCacheMetrics,
BlockType expectedBlockType,
DataBlockEncoding expectedDataBlockEncoding)
Retrieve block from cache.
|
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 ConcurrentIndex<String,BlockCacheKey> |
BucketCache.blocksByHFile |
private 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,
boolean cacheDataInL1)
Cache the block with the specified name and buffer.
|
void |
BucketCache.cacheBlockWithWait(BlockCacheKey cacheKey,
Cacheable cachedItem,
boolean inMemory,
boolean wait)
Cache the block to ramCache
|
boolean |
BucketCache.evictBlock(BlockCacheKey cacheKey) |
Cacheable |
BucketCache.getBlock(BlockCacheKey key,
boolean caching,
boolean repeat,
boolean updateCacheMetrics)
Get the buffer of the block with the specified key.
|
Modifier and Type | Method and Description |
---|---|
void |
BucketCache.BucketEntryGroup.add(Map.Entry<BlockCacheKey,BucketCache.BucketEntry> block) |
void |
CachedEntryQueue.add(Map.Entry<BlockCacheKey,BucketCache.BucketEntry> entry)
Attempt to add the specified entry to this queue.
|
Constructor and Description |
---|
BucketCache.RAMQueueEntry(BlockCacheKey bck,
Cacheable data,
long accessCounter,
boolean inMemory) |
Constructor and Description |
---|
BucketAllocator(long availableSpace,
int[] bucketSizes,
Map<BlockCacheKey,BucketCache.BucketEntry> map,
AtomicLong realCacheSize)
Rebuild the allocator's data structures from a persisted map.
|
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.