public static class CacheTestUtils.ByteArrayCacheable extends Object implements org.apache.hadoop.hbase.io.hfile.Cacheable
Modifier and Type | Field and Description |
---|---|
private static org.apache.hadoop.hbase.io.hfile.CacheableDeserializer<org.apache.hadoop.hbase.io.hfile.Cacheable> |
blockDeserializer |
(package private) byte[] |
buf |
private static int |
deserializerIdentifier |
Constructor and Description |
---|
ByteArrayCacheable(byte[] buf) |
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() |
void |
serialize(ByteBuffer destination,
boolean includeNextBlockMetadata) |
private static final org.apache.hadoop.hbase.io.hfile.CacheableDeserializer<org.apache.hadoop.hbase.io.hfile.Cacheable> blockDeserializer
final byte[] buf
private static final int deserializerIdentifier
public ByteArrayCacheable(byte[] buf)
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 void serialize(ByteBuffer destination, boolean includeNextBlockMetadata)
serialize
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
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.