Modifier and Type | Method and Description |
---|---|
CacheEntry |
LruBlockCache.cacheBlock(String blockName,
byte[] buf)
Cache the block with the specified name and buffer.
|
CacheEntry |
LruBlockCache.cacheBlock(String blockName,
byte[] buf,
boolean inMemory)
Cache the block with the specified name and buffer.
|
CacheEntry |
LruBlockCache.getBlock(String blockName)
Get the buffer of the block with the specified name.
|
CacheEntry |
SynchronousLoadingBlockCache.getBlock(String blockName,
BlockCache.Loader loader) |
protected abstract CacheEntry |
SynchronousLoadingBlockCache.getBlockNoStats(String blockName)
Get a block from the cache without changing any stats the cache is keeping.
|
protected CacheEntry |
LruBlockCache.getBlockNoStats(String blockName) |
Modifier and Type | Method and Description |
---|---|
CacheEntry |
TinyLfuBlockCache.cacheBlock(String blockName,
byte[] buffer) |
CacheEntry |
TinyLfuBlockCache.getBlock(String blockName) |
CacheEntry |
TinyLfuBlockCache.getBlock(String blockName,
BlockCache.Loader loader) |
Constructor and Description |
---|
CachedBlockRead(CacheEntry cb,
byte[] buf) |
Modifier and Type | Method and Description |
---|---|
CacheEntry |
BlockCache.cacheBlock(String blockName,
byte[] buf)
Add block to cache.
|
CacheEntry |
BlockCache.getBlock(String blockName)
Fetch block from cache.
|
CacheEntry |
BlockCache.getBlock(String blockName,
BlockCache.Loader loader)
This method allows a cache to prevent concurrent loads of the same block.
|
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.