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 |
CacheableDeserializer<T extends Cacheable>
Interface for a deserializer.
|
Modifier and Type | Class and Description |
---|---|
class |
HFileBlock
Reading
HFile version 1 and 2 blocks, and writing version 2 blocks. |
Modifier and Type | Field and Description |
---|---|
private Cacheable |
LruCachedBlock.buf |
Modifier and Type | Field and Description |
---|---|
(package private) static CacheableDeserializer<Cacheable> |
HFileBlock.blockDeserializer |
private static Map<Integer,CacheableDeserializer<Cacheable>> |
CacheableDeserializerIdManager.registeredDeserializers |
Modifier and Type | Method and Description |
---|---|
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) |
Cacheable |
LruCachedBlock.getBuffer() |
Modifier and Type | Method and Description |
---|---|
CacheableDeserializer<Cacheable> |
HFileBlock.getDeserializer() |
CacheableDeserializer<Cacheable> |
Cacheable.getDeserializer()
Returns CacheableDeserializer instance which reconstructs original object from ByteBuffer.
|
static CacheableDeserializer<Cacheable> |
CacheableDeserializerIdManager.getDeserializer(int id)
Get the cacheable deserializer as the given identifier Id
|
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) |
private int |
LruBlockCache.compare(Cacheable left,
Cacheable right) |
Modifier and Type | Method and Description |
---|---|
static int |
CacheableDeserializerIdManager.registerDeserializer(CacheableDeserializer<Cacheable> cd)
Register the given cacheable deserializer and generate an unique identifier
id for it
|
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 Cacheable |
BucketCache.RAMQueueEntry.data |
Modifier and Type | Method and Description |
---|---|
Cacheable |
BucketCache.getBlock(BlockCacheKey key,
boolean caching,
boolean repeat,
boolean updateCacheMetrics)
Get the buffer of the block with the specified key.
|
Cacheable |
BucketCache.RAMQueueEntry.getData() |
Modifier and Type | Method and Description |
---|---|
protected CacheableDeserializer<Cacheable> |
BucketCache.BucketEntry.deserializerReference(UniqueIndexMap<Integer> deserialiserMap) |
Modifier and Type | Method and Description |
---|---|
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
|
Modifier and Type | Method and Description |
---|---|
protected void |
BucketCache.BucketEntry.setDeserialiserReference(CacheableDeserializer<Cacheable> deserializer,
UniqueIndexMap<Integer> deserialiserMap) |
Constructor and Description |
---|
BucketCache.RAMQueueEntry(BlockCacheKey bck,
Cacheable data,
long accessCounter,
boolean inMemory) |
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.