public static class CacheTestUtils.ByteArrayCacheable extends Object implements Cacheable
Cacheable.MemoryType| Constructor and Description |
|---|
ByteArrayCacheable(byte[] buf) |
| Modifier and Type | Method and Description |
|---|---|
BlockType |
getBlockType() |
CacheableDeserializer<Cacheable> |
getDeserializer() |
Cacheable.MemoryType |
getMemoryType() |
int |
getSerializedLength() |
long |
heapSize() |
void |
serialize(ByteBuffer destination,
boolean includeNextBlockMetadata) |
public ByteArrayCacheable(byte[] buf)
public int getSerializedLength()
getSerializedLength in interface Cacheablepublic void serialize(ByteBuffer destination, boolean includeNextBlockMetadata)
public CacheableDeserializer<Cacheable> getDeserializer()
getDeserializer in interface Cacheablepublic BlockType getBlockType()
getBlockType in interface Cacheablepublic Cacheable.MemoryType getMemoryType()
getMemoryType in interface CacheableCopyright © 2007–2019 Cloudera. All rights reserved.