Package | Description |
---|---|
com.alexkasko.unsafe.offheap |
Off-heap memory operations using sun.misc.Unsafe
|
com.alexkasko.unsafe.offheaplong |
Long sized off-heap collections of longs with sorting and searching support
|
com.alexkasko.unsafe.offheapstruct |
Long sized off-heap collections of "structs" (memory areas with equal sizes)
with sorting and searching support
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
DirectOffHeapMemory
Implementation of
OffHeapMemory using ByteBuffer.allocateDirect(int) |
(package private) class |
OnHeapMemory
Implementation of
OffHeapMemory
using byte array effectively making it OnHeap memory |
(package private) class |
UnsafeOffHeapMemory
Implementation of
OffHeapMemory using sun.misc.Unsafe |
Modifier and Type | Method and Description |
---|---|
static OffHeapMemory |
OffHeapMemory.allocateMemory(long bytes)
Allocates memory using
sun.misc.Unsafe if it's proper implementation is available. |
static OffHeapMemory |
OffHeapMemory.allocateMemoryDirect(long bytes)
Allocates memory using
ByteBuffer.allocateDirect(int) |
static OffHeapMemory |
OffHeapMemory.allocateMemoryOnHeap(ByteArrayTool bt,
long bytes)
Allocates memory using byte array
|
static OffHeapMemory |
OffHeapMemory.allocateMemoryUnsafe(long bytes)
Allocates memory using
sun.misc.Unsafe |
OffHeapMemory |
UnsafeOffHeapMemory.clone()
Creates new instance of
OffHeapMemory
and copies there current instance contents |
OffHeapMemory |
DirectOffHeapMemory.clone()
Creates new instance of
OffHeapMemory
and copies there current instance contents |
abstract OffHeapMemory |
OffHeapMemory.clone()
Creates new instance of
OffHeapMemory
and copies there current instance contents |
OffHeapMemory |
OnHeapMemory.clone()
Creates new instance of
OffHeapMemory
and copies there current instance contents |
Modifier and Type | Method and Description |
---|---|
void |
UnsafeOffHeapMemory.copy(long offset,
OffHeapMemory destination,
long destOffset,
long bytes)
Copies memory from this instance's area into another instance's area
|
void |
DirectOffHeapMemory.copy(long offset,
OffHeapMemory destination,
long destOffset,
long bytes)
Copies memory from this instance's area into another instance's area
|
abstract void |
OffHeapMemory.copy(long offset,
OffHeapMemory destination,
long destOffset,
long bytes)
Copies memory from this instance's area into another instance's area
|
void |
OnHeapMemory.copy(long offset,
OffHeapMemory destination,
long destOffset,
long bytes)
Copies memory from this instance's area into another instance's area
|
Modifier and Type | Field and Description |
---|---|
private OffHeapMemory |
OffHeapLongArray.ohm |
private OffHeapMemory |
OffHeapLongArrayList.ohm |
Constructor and Description |
---|
OffHeapLongArray(OffHeapMemory ohm)
Private constructor for
OffHeapLongArray.clone() support |
Modifier and Type | Field and Description |
---|---|
private OffHeapMemory |
OffHeapStructArrayList.ohm |
private OffHeapMemory |
OffHeapStructArray.ohm |
Constructor and Description |
---|
OffHeapStructArray(OffHeapMemory ohm,
int structLength)
Private constructor for
OffHeapStructArray.clone() support |
Copyright © 2014. All Rights Reserved.