public static class CacheTestUtils.ByteArrayCacheable extends Object implements org.apache.hadoop.hbase.io.hfile.Cacheable
| Modifier and Type | Field and Description | 
|---|---|
(package 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()  | 
org.apache.hadoop.hbase.io.hfile.Cacheable.MemoryType | 
getMemoryType()  | 
int | 
getSerializedLength()  | 
long | 
heapSize()  | 
void | 
serialize(ByteBuffer destination,
         boolean includeNextBlockMetadata)  | 
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.HeapSizepublic int getSerializedLength()
getSerializedLength in interface org.apache.hadoop.hbase.io.hfile.Cacheablepublic void serialize(ByteBuffer destination, boolean includeNextBlockMetadata)
serialize in interface org.apache.hadoop.hbase.io.hfile.Cacheablepublic org.apache.hadoop.hbase.io.hfile.CacheableDeserializer<org.apache.hadoop.hbase.io.hfile.Cacheable> getDeserializer()
getDeserializer in interface org.apache.hadoop.hbase.io.hfile.Cacheablepublic org.apache.hadoop.hbase.io.hfile.BlockType getBlockType()
getBlockType in interface org.apache.hadoop.hbase.io.hfile.Cacheablepublic org.apache.hadoop.hbase.io.hfile.Cacheable.MemoryType getMemoryType()
getMemoryType in interface org.apache.hadoop.hbase.io.hfile.CacheableCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.