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
IOException
public CacheBlock deserializeBlock() throws IOException
IOException
public void evictBuffer(String fname) throws IOException
IOException
public long getSize()
public boolean isShallow()
public void freeMemory()
public void checkSerialized()
public static boolean isValidCapacity(long size, CacheBlock cb)
size
- the sizecb
- cache blockCopyright © 2020 The Apache Software Foundation. All rights reserved.