public class ByteBuffer extends Object
| Constructor and Description |
|---|
ByteBuffer(long size) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkSerialized() |
CacheBlock |
deserializeBlock() |
void |
evictBuffer(String fname) |
void |
freeMemory() |
long |
getSize()
Returns the buffer size in bytes.
|
boolean |
isShallow() |
static boolean |
isValidCapacity(long size,
CacheBlock cb)
Determines if byte buffer can hold the given size given this specific cache block.
|
void |
serializeBlock(CacheBlock cb) |
public void serializeBlock(CacheBlock cb) throws IOException
IOExceptionpublic CacheBlock deserializeBlock() throws IOException
IOExceptionpublic void evictBuffer(String fname) throws IOException
IOExceptionpublic long getSize()
public boolean isShallow()
public void freeMemory()
public void checkSerialized()
public static boolean isValidCapacity(long size,
CacheBlock cb)
size - the sizecb - cache blockCopyright © 2021 The Apache Software Foundation. All rights reserved.