Package org.apache.hadoop.hbase.io.hfile
Class CacheTestUtils.ByteArrayCacheable
java.lang.Object
org.apache.hadoop.hbase.io.hfile.CacheTestUtils.ByteArrayCacheable
- All Implemented Interfaces:
org.apache.hadoop.hbase.io.HeapSize
,org.apache.hadoop.hbase.io.hfile.Cacheable
,org.apache.hadoop.hbase.nio.HBaseReferenceCounted
,org.apache.hbase.thirdparty.io.netty.util.ReferenceCounted
- Enclosing class:
- CacheTestUtils
public static class CacheTestUtils.ByteArrayCacheable
extends Object
implements org.apache.hadoop.hbase.io.hfile.Cacheable
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.apache.hadoop.hbase.io.hfile.CacheableDeserializer<org.apache.hadoop.hbase.io.hfile.Cacheable>
(package private) final byte[]
private static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.io.hfile.BlockType
org.apache.hadoop.hbase.io.hfile.CacheableDeserializer<org.apache.hadoop.hbase.io.hfile.Cacheable>
int
long
heapSize()
void
serialize
(ByteBuffer destination, boolean includeNextBlockMetadata) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.hadoop.hbase.io.hfile.Cacheable
refCnt, release, retain
Methods inherited from interface org.apache.hadoop.hbase.nio.HBaseReferenceCounted
release, retain, touch, touch
-
Field Details
-
blockDeserializer
private static final org.apache.hadoop.hbase.io.hfile.CacheableDeserializer<org.apache.hadoop.hbase.io.hfile.Cacheable> blockDeserializer -
buf
-
deserializerIdentifier
-
-
Constructor Details
-
ByteArrayCacheable
-
-
Method Details
-
heapSize
- Specified by:
heapSize
in interfaceorg.apache.hadoop.hbase.io.HeapSize
-
getSerializedLength
- Specified by:
getSerializedLength
in interfaceorg.apache.hadoop.hbase.io.hfile.Cacheable
-
serialize
- Specified by:
serialize
in interfaceorg.apache.hadoop.hbase.io.hfile.Cacheable
-
getDeserializer
public org.apache.hadoop.hbase.io.hfile.CacheableDeserializer<org.apache.hadoop.hbase.io.hfile.Cacheable> getDeserializer()- Specified by:
getDeserializer
in interfaceorg.apache.hadoop.hbase.io.hfile.Cacheable
-
getBlockType
- Specified by:
getBlockType
in interfaceorg.apache.hadoop.hbase.io.hfile.Cacheable
-