public class OffHeapStorageArea extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
OffHeapStorageArea.Owner |
| Constructor and Description |
|---|
OffHeapStorageArea(PointerSize width,
OffHeapStorageArea.Owner owner,
PageSource pageSource,
int pageSize,
boolean thief,
boolean victim) |
OffHeapStorageArea(PointerSize width,
OffHeapStorageArea.Owner owner,
PageSource pageSource,
int pageSize,
boolean thief,
boolean victim,
float compressThreshold) |
OffHeapStorageArea(PointerSize width,
OffHeapStorageArea.Owner owner,
PageSource pageSource,
int initialPageSize,
int maximalPageSize,
boolean thief,
boolean victim) |
OffHeapStorageArea(PointerSize width,
OffHeapStorageArea.Owner owner,
PageSource pageSource,
int initialPageSize,
int maximalPageSize,
boolean thief,
boolean victim,
float compressThreshold) |
| Modifier and Type | Method and Description |
|---|---|
long |
allocate(long size) |
void |
clear() |
void |
destroy() |
void |
free(long address) |
long |
getAllocatedMemory() |
long |
getOccupiedMemory() |
ByteBuffer |
readBuffer(long address,
int length)
Read the given range and return the data as a single read-only
ByteBuffer. |
ByteBuffer[] |
readBuffers(long address,
int length)
Read the given range and return the data as an array of read-only
ByteBuffers. |
byte |
readByte(long address) |
int |
readInt(long address) |
long |
readLong(long address) |
short |
readShort(long address) |
Collection<Page> |
release(Collection<Page> targets) |
void |
release(long address) |
boolean |
shrink() |
String |
toString() |
void |
validateStorageArea() |
void |
writeBuffer(long address,
ByteBuffer data) |
void |
writeBuffers(long address,
ByteBuffer[] data) |
void |
writeByte(long address,
byte value) |
void |
writeInt(long address,
int value) |
void |
writeLong(long address,
long value) |
void |
writeShort(long address,
short value) |
public OffHeapStorageArea(PointerSize width, OffHeapStorageArea.Owner owner, PageSource pageSource, int pageSize, boolean thief, boolean victim)
public OffHeapStorageArea(PointerSize width, OffHeapStorageArea.Owner owner, PageSource pageSource, int pageSize, boolean thief, boolean victim, float compressThreshold)
public OffHeapStorageArea(PointerSize width, OffHeapStorageArea.Owner owner, PageSource pageSource, int initialPageSize, int maximalPageSize, boolean thief, boolean victim)
public OffHeapStorageArea(PointerSize width, OffHeapStorageArea.Owner owner, PageSource pageSource, int initialPageSize, int maximalPageSize, boolean thief, boolean victim, float compressThreshold)
public void clear()
public byte readByte(long address)
public short readShort(long address)
public int readInt(long address)
public long readLong(long address)
public ByteBuffer readBuffer(long address, int length)
ByteBuffer.address - address to read fromlength - number of bytes to readpublic ByteBuffer[] readBuffers(long address, int length)
ByteBuffers.address - address to read fromlength - number of bytes to readpublic void writeByte(long address,
byte value)
public void writeShort(long address,
short value)
public void writeInt(long address,
int value)
public void writeLong(long address,
long value)
public void writeBuffer(long address,
ByteBuffer data)
public void writeBuffers(long address,
ByteBuffer[] data)
public void free(long address)
public void destroy()
public long allocate(long size)
public long getAllocatedMemory()
public long getOccupiedMemory()
public void validateStorageArea()
public void release(long address)
public Collection<Page> release(Collection<Page> targets)
public boolean shrink()
Copyright © 2015–2024. All rights reserved.