private static class TestTinyLfuBlockCache.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) |
Modifier and Type | Method and Description |
---|---|
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)
public long heapSize()
heapSize
in interface org.apache.hadoop.hbase.io.HeapSize
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 org.apache.hadoop.hbase.io.hfile.BlockType getBlockType()
getBlockType
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
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.