| 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 |
|---|---|
<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
|
<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> |
FSTTypedStructAllocator.newPointer(Class<C> clazz) |
static <C extends FSTStruct> |
FSTStructAllocator.newPointer(Class<C> clazz) |
<S extends FSTStruct> |
FSTStructAllocator.newStruct(S aTemplate)
allocate a Struct instance from an arbitrary template.
|
static <T extends FSTStruct> |
FSTTypedStructAllocator.toStruct(T onHeapTemplate) |
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 byte[] capable of holding the data.
|
static FSTStruct |
FSTTypedStructAllocator.createStructPointer(byte[] b,
int index) |
static FSTStruct |
FSTStructAllocator.createStructPointer(byte[] 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 |
FSTTypedStructAllocator.getVolatileStructPointer(byte[] b,
int index) |
static FSTStruct |
FSTStructAllocator.getVolatileStructPointer(byte[] b,
int index) |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends FSTStruct> |
FSTArrayElementSizeCalculator.getElementType(Field arrayRef,
FSTStructFactory fac) |
| Modifier and Type | Method and Description |
|---|---|
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 adressed hashmap, which allows read access when embedded in structs.
|
class |
StructMap<K extends FSTStruct,V extends FSTStruct>
a simple open adressed 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 adressed 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,
byte[] bytes,
int index) |
<T extends FSTStruct> |
FSTStructFactory.toStruct(T onHeap) |
<T extends FSTStruct> |
FSTStructFactory.toStructArray(int size,
T onHeap) |
| Modifier and Type | Method and Description |
|---|---|
FSTStruct |
FSTStructFactory.createPrimitiveArrayBasePointer(byte[] base,
long objectBaseOffset,
int arrayStructIndex) |
FSTStruct |
FSTStructFactory.createStructPointer(byte[] 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(byte[] b,
int index)
allocates a StructAccessor ("pointer") matching the struct data expected in the byte
array at given position.
|
FSTStruct |
FSTStructFactory.createTypedArrayBasePointer(byte[] base,
long objectBaseOffset,
int arrayStructIndex) |
FSTStruct |
FSTStructFactory.getStructPointer(byte[] b,
int index)
returns a struct wrapper for given structured object from the thread local wrapper cache.
|
FSTStruct |
FSTStructFactory.getStructPointerByOffset(byte[] b,
long offset) |
| Modifier and Type | Method and Description |
|---|---|
int |
FSTStructFactory.calcStructSize(FSTStruct onHeapStruct) |
void |
FSTStructFactory.detach(FSTStruct structPointer) |
void |
FSTStructFactory.fillPrimitiveArrayBasePointer(FSTStruct result,
byte[] base,
long objectBaseOffset,
int arrayStructIndex) |
void |
FSTStructFactory.fillTypedArrayBasePointer(FSTStruct result,
byte[] base,
long objectBaseOffset,
int arrayStructIndex) |
byte[] |
FSTStructFactory.toByteArray(FSTStruct onHeapStruct) |
int |
FSTStructFactory.toByteArray(FSTStruct onHeapStruct,
byte[] bytes,
int index) |
Copyright © 2013. All rights reserved.