private static class TestLruBlockCache.CachedItem extends Object implements org.apache.hadoop.hbase.io.hfile.Cacheable
Modifier and Type | Field and Description |
---|---|
(package private) org.apache.hadoop.hbase.io.hfile.BlockCacheKey |
cacheKey |
(package private) int |
size |
Constructor and Description |
---|
CachedItem(String blockName,
int size) |
CachedItem(String blockName,
int size,
int offset) |
Modifier and Type | Method and Description |
---|---|
long |
cacheBlockHeapSize()
Size of the cache block holding this item.
|
org.apache.hadoop.hbase.io.hfile.BlockType |
getBlockType() |
org.apache.hadoop.hbase.io.hfile.CacheableDeserializer<org.apache.hadoop.hbase.io.hfile.Cacheable> |
getDeserializer() |
int |
getSerializedLength() |
long |
heapSize()
The size of this item reported to the block cache layer
|
void |
serialize(ByteBuffer destination,
boolean includeNextBlockMetadata) |
CachedItem(String blockName, int size, int offset)
CachedItem(String blockName, int size)
public long heapSize()
heapSize
in interface org.apache.hadoop.hbase.io.HeapSize
public long cacheBlockHeapSize()
public int getSerializedLength()
getSerializedLength
in interface org.apache.hadoop.hbase.io.hfile.Cacheable
public org.apache.hadoop.hbase.io.hfile.CacheableDeserializer<org.apache.hadoop.hbase.io.hfile.Cacheable> getDeserializer()
getDeserializer
in interface org.apache.hadoop.hbase.io.hfile.Cacheable
public void serialize(ByteBuffer destination, boolean includeNextBlockMetadata)
serialize
in interface org.apache.hadoop.hbase.io.hfile.Cacheable
public org.apache.hadoop.hbase.io.hfile.BlockType getBlockType()
getBlockType
in interface org.apache.hadoop.hbase.io.hfile.Cacheable
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.