| Package | Description |
|---|---|
| de.ruedigermoeller.heapoff.structs | |
| de.ruedigermoeller.heapoff.structs.structtypes | |
| de.ruedigermoeller.heapoff.structs.unsafeimpl |
| Modifier and Type | Class and Description |
|---|---|
class |
FSTTypedStructAllocator<T extends FSTStruct>
An extension of FSTStructAllocaor to ease pools of specific objects.
|
| Modifier and Type | Method and Description |
|---|---|
protected static <C extends FSTStruct> |
FSTStructAllocator.allocInstance(Class<C> clazz) |
<T extends FSTStruct> |
FSTStruct.cast(Class<T> to) |
<X extends FSTStruct> |
FSTStructAllocator.newArray(int size,
X templ)
create a new struct array of same type as template
|
<X extends FSTStruct> |
FSTStructAllocator.newArray(int size,
X templ,
BytezAllocator alloc)
create a new struct array of same type as template
|
<K extends FSTStruct> |
FSTTypedStructAllocator.newMap(int size,
K keyTemplate)
create a fixed size struct hashmap.
|
<K extends FSTStruct,V extends FSTStruct> |
FSTStructAllocator.newMap(int size,
K keyTemplate,
V valueTemplate)
create a fixed size struct hashmap.
|
<K extends FSTStruct,V extends FSTStruct> |
FSTStructAllocator.newMap(int size,
K keyTemplate,
V valueTemplate)
create a fixed size struct hashmap.
|
static <C extends FSTStruct> |
FSTStructAllocator.newPointer(Class<C> clazz) |
<S extends FSTStruct> |
FSTStructAllocator.newStruct(S aTemplate)
allocate a Struct instance from an arbitrary template instance.
|
<S extends FSTStruct> |
FSTStructAllocator.newStruct(S aTemplate,
BytezAllocator alloc) |
static <T extends FSTStruct> |
FSTStructAllocator.toStruct(T onHeapTemplate) |
| Modifier and Type | Method and Description |
|---|---|
FSTStruct |
FSTStruct.cast() |
FSTStruct |
FSTStruct.createCopy()
returns a complete copy of this object allocating a new Bytez capable of holding the data.
|
static FSTStruct |
FSTStructAllocator.createStructPointer(Bytez b,
int index) |
FSTStruct |
FSTStruct.detach()
important: iterators, array access and access to substructures of a struct always return
pointers, which are cached per thread.
|
static FSTStruct |
FSTStructAllocator.getVolatileStructPointer(Bytez b,
int index) |
FSTStruct |
FSTStruct.startChangeTracking()
works only if change tracking is enabled
|
FSTStruct |
FSTStruct.toOffHeap() |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends FSTStruct> |
FSTArrayElementSizeCalculator.getElementType(Field arrayRef,
FSTStructFactory fac) |
| Modifier and Type | Method and Description |
|---|---|
void |
FSTStructChange.applySnapshot(FSTStruct target) |
boolean |
FSTStruct.isIdenticTo(FSTStruct other) |
| Modifier and Type | Class and Description |
|---|---|
class |
StructArray<E extends FSTStruct>
An array which elements are stored 'off heap'.
|
class |
StructArray.StructArrIterator<T extends FSTStruct> |
class |
StructMap<K extends FSTStruct,V extends FSTStruct>
a simple open addressed hashmap, which allows read access when embedded in structs.
|
class |
StructMap<K extends FSTStruct,V extends FSTStruct>
a simple open addressed hashmap, which allows read access when embedded in structs.
|
| Modifier and Type | Class and Description |
|---|---|
class |
StructArray<E extends FSTStruct>
An array which elements are stored 'off heap'.
|
class |
StructInt
Created with IntelliJ IDEA.
|
class |
StructMap<K extends FSTStruct,V extends FSTStruct>
a simple open addressed hashmap, which allows read access when embedded in structs.
|
class |
StructString
this class can be used to represent strings in structs. the content is rewritable, but cannot grow.
|
| Modifier and Type | Field and Description |
|---|---|
protected FSTStruct[] |
StructMap.keys |
protected FSTStruct |
StructMap.pointer |
protected E |
StructArray.template |
protected FSTStruct[] |
StructMap.vals |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends FSTStruct> |
StructMap.getElementType(Field arrayRef,
FSTStructFactory fac) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
StructMap.init(FSTStruct keyTemplate,
FSTStruct valueTemplate,
int numElems) |
void |
StructMap.keys(int i,
FSTStruct v) |
void |
StructMap.vals(int i,
FSTStruct v) |
| Constructor and Description |
|---|
StructMap(FSTStruct keyTemplate,
FSTStruct valueTemplate,
int numElems) |
StructMap(FSTStruct keyTemplate,
FSTStruct valueTemplate,
Map<K,V> elems) |
| Modifier and Type | Method and Description |
|---|---|
<T extends FSTStruct> |
FSTStructFactory.createWrapper(Class<T> onHeap,
Bytez bytes,
int index) |
<T extends FSTStruct> |
FSTStructFactory.toStruct(T onHeap) |
<T extends FSTStruct> |
FSTStructFactory.toStruct(T onHeap,
BytezAllocator alloc) |
<T extends FSTStruct> |
FSTStructFactory.toStructArray(int size,
T onHeap) |
| Modifier and Type | Method and Description |
|---|---|
FSTStruct |
FSTStructFactory.createPrimitiveArrayBasePointer(Bytez base,
long objectBaseOffset,
int arrayStructIndex) |
FSTStruct |
FSTStructFactory.createStructPointer(Bytez b,
int index,
int clzId)
allocates a StructAccessor ("pointer") matching the struct data expected in the byte
array at given position with given classId.
|
FSTStruct |
FSTStructFactory.createStructWrapper(Bytez b,
int index)
allocates a StructAccessor ("pointer") matching the struct data expected in the byte
array at given position.
|
FSTStruct |
FSTStructFactory.createTypedArrayBasePointer(Bytez base,
long objectBaseOffset,
int arrayStructIndex) |
FSTStruct |
FSTStructFactory.getStructPointer(Bytez b,
int index)
returns a struct wrapper for given structured object from the thread local wrapper cache.
|
FSTStruct |
FSTStructFactory.getStructPointerByOffset(Bytez b,
long offset) |
| Modifier and Type | Method and Description |
|---|---|
int |
FSTStructFactory.calcStructSize(FSTStruct onHeapStruct) |
void |
FSTStructFactory.detach(FSTStruct structPointer) |
void |
FSTStructFactory.fillPrimitiveArrayBasePointer(FSTStruct result,
Bytez base,
long objectBaseOffset,
int arrayStructIndex) |
void |
FSTStructFactory.fillTypedArrayBasePointer(FSTStruct result,
Bytez base,
long objectBaseOffset,
int arrayStructIndex) |
Bytez |
FSTStructFactory.toByteArray(FSTStruct onHeapStruct) |
Bytez |
FSTStructFactory.toByteArray(FSTStruct onHeapStruct,
BytezAllocator allocator) |
int |
FSTStructFactory.toByteArray(FSTStruct onHeapStruct,
Bytez bytes,
int index) |
Copyright © 2014. All rights reserved.