| Package | Description |
|---|---|
| org.apache.hadoop.hbase.io.hfile |
Provides the hbase data+index+metadata file.
|
| org.apache.hadoop.hbase.io.hfile.bucket | |
| org.apache.hadoop.hbase.io.hfile.slab |
| 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 | Method and Description |
|---|---|
Cacheable |
BlockCache.getBlock(BlockCacheKey cacheKey,
boolean caching,
boolean repeat,
boolean updateCacheMetrics)
Fetch block from cache.
|
Cacheable |
LruBlockCache.getBlock(BlockCacheKey cacheKey,
boolean caching,
boolean repeat,
boolean updateCacheMetrics)
Get the buffer of the block with the specified name.
|
Cacheable |
CombinedBlockCache.getBlock(BlockCacheKey cacheKey,
boolean caching,
boolean repeat,
boolean updateCacheMetrics) |
Cacheable |
DoubleBlockCache.getBlock(BlockCacheKey cacheKey,
boolean caching,
boolean repeat,
boolean updateCacheMetrics)
Deprecated.
|
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 |
BlockCache.cacheBlock(BlockCacheKey cacheKey,
Cacheable buf)
Add block to cache (defaults to not in-memory).
|
void |
LruBlockCache.cacheBlock(BlockCacheKey cacheKey,
Cacheable buf)
Cache the block with the specified name and buffer.
|
void |
CombinedBlockCache.cacheBlock(BlockCacheKey cacheKey,
Cacheable buf) |
void |
DoubleBlockCache.cacheBlock(BlockCacheKey cacheKey,
Cacheable buf)
Deprecated.
|
void |
BlockCache.cacheBlock(BlockCacheKey cacheKey,
Cacheable buf,
boolean inMemory)
Add block to cache.
|
void |
LruBlockCache.cacheBlock(BlockCacheKey cacheKey,
Cacheable buf,
boolean inMemory)
Cache the block with the specified name and buffer.
|
void |
CombinedBlockCache.cacheBlock(BlockCacheKey cacheKey,
Cacheable buf,
boolean inMemory) |
void |
DoubleBlockCache.cacheBlock(BlockCacheKey cacheKey,
Cacheable buf,
boolean inMemory)
Deprecated.
|
| 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 | Method and Description |
|---|---|
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.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.
|
void |
BucketCache.cacheBlockWithWait(BlockCacheKey cacheKey,
Cacheable cachedItem,
boolean inMemory,
boolean wait)
Cache the block to ramCache
|
| Modifier and Type | Method and Description |
|---|---|
Cacheable |
SlabCache.getBlock(BlockCacheKey key,
boolean caching,
boolean repeat,
boolean updateCacheMetrics)
Deprecated.
Get the buffer of the block with the specified name.
|
Cacheable |
SingleSizeCache.getBlock(BlockCacheKey key,
boolean caching,
boolean repeat,
boolean updateCacheMetrics)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SlabCache.cacheBlock(BlockCacheKey cacheKey,
Cacheable cachedItem)
Deprecated.
Cache the block with the specified key and buffer.
|
void |
SingleSizeCache.cacheBlock(BlockCacheKey blockName,
Cacheable toBeCached)
Deprecated.
|
void |
SlabCache.cacheBlock(BlockCacheKey cacheKey,
Cacheable buf,
boolean inMemory)
Deprecated.
We don't care about whether its in memory or not, so we just pass the call
through.
|
void |
SingleSizeCache.cacheBlock(BlockCacheKey cacheKey,
Cacheable buf,
boolean inMemory)
Deprecated.
|
Copyright © 2014 The Apache Software Foundation. All rights reserved.