| Package | Description |
|---|---|
| org.nustaq.offheap.structs | |
| org.nustaq.offheap.structs.structtypes | |
| org.nustaq.offheap.structs.unsafeimpl |
| Modifier and Type | Method and Description |
|---|---|
protected static <C extends FSTStruct> |
FSTStructAllocator.allocInstance(Class<C> clazz) |
<T extends FSTStruct> |
FSTStruct.cast() |
<T extends FSTStruct> |
FSTStruct.cast(Class<T> to) |
<T extends FSTStruct> |
FSTStruct.detach()
important: iterators, array access and access to substructures of a struct always return
pointers, which are cached per thread (one instance only!).
|
<T extends FSTStruct> |
FSTStruct.detachTo(T pointer)
move offsets and memorybase to given pointer and return the pointer.
|
<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
|
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.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) |
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 whose elements are stored 'off heap'.
|
class |
StructArray.StructArrIterator<T extends FSTStruct> |
| Modifier and Type | Class and Description |
|---|---|
class |
StructArray<E extends FSTStruct>
An array whose elements are stored 'off heap'.
|
class |
StructByteString
Created by ruedi on 08.12.2014.
|
class |
StructInt
Created with IntelliJ IDEA.
|
class |
StructString
this class can be used to represent strings in structs.
|
| Modifier and Type | Field and Description |
|---|---|
protected E |
StructArray.template |
| Modifier and Type | Method and Description |
|---|---|
<T extends FSTStruct> |
FSTStructFactory.createEmptyStructPointer(Class<T> onHeap) |
<T extends FSTStruct> |
FSTStructFactory.createWrapper(Class<T> onHeap,
Bytez bytes,
long 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,
long 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,
long 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,
long 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 © 2015. All rights reserved.