public abstract class Binary extends Object implements Chunk
| Modifier and Type | Method and Description |
|---|---|
static long |
binaryListMaximumLength() |
static long |
binaryListMinimumLength() |
abstract ByteBuffer[] |
buffers() |
boolean[] |
build_booleans() |
boolean[] |
build_booleans(long listOffset) |
byte[] |
build_bytes() |
byte[] |
build_bytes(long listOffset) |
char[] |
build_chars() |
char[] |
build_chars(long listOffset) |
double[] |
build_doubles() |
double[] |
build_doubles(long listOffset) |
float[] |
build_floats() |
float[] |
build_floats(long listOffset) |
int[] |
build_ints() |
int[] |
build_ints(long listOffset) |
long[] |
build_longs() |
long[] |
build_longs(long listOffset) |
short[] |
build_shorts() |
short[] |
build_shorts(long listOffset) |
Boolean |
buildBoolean() |
Boolean |
buildBoolean(long offset) |
Byte |
buildByte() |
Byte |
buildByte(long offset) |
Character |
buildCharacter() |
Character |
buildCharacter(long offset) |
Double |
buildDouble() |
Double |
buildDouble(long offset) |
Float |
buildFloat() |
Float |
buildFloat(long offset) |
Integer |
buildInteger() |
Integer |
buildInteger(long offset) |
Long |
buildLong() |
Long |
buildLong(long offset) |
Object |
buildPrimitiveWrapper(Class<?> primitiveValueType) |
Object |
buildPrimitiveWrapper(Class<?> primitiveValueType,
long offset) |
<T extends one.microstream.collections.types.XAddingMap<String,Long>> |
buildRootMapping(T mapping) |
Short |
buildShort() |
Short |
buildShort(long offset) |
String |
buildString() |
String |
buildString(long offset) |
String[] |
buildStrings(long stringsListOffset) |
static long |
calculateBinaryLengthChars(long count) |
static long |
calculateReferenceListTotalBinaryLength(long count) |
static long |
calculateStringListContentBinaryLength(String[] strings) |
abstract Binary |
channelChunk(int channelIndex) |
abstract int |
channelCount() |
void |
collectElementsIntoArray(long binaryOffset,
PersistenceLoadHandler handler,
Object[] target) |
int |
collectKeyValueReferences(long binaryOffset,
int length,
PersistenceLoadHandler handler,
BiConsumer<Object,Object> collector) |
int |
collectListObjectReferences(long binaryOffset,
PersistenceLoadHandler handler,
Consumer<Object> collector) |
void |
collectObjectReferences(long binaryOffset,
int length,
PersistenceLoadHandler handler,
Consumer<Object> collector) |
void |
copyMemory(ByteBuffer directByteBuffer,
long offset,
BinaryValueSetter[] setters,
long[] targetOffsets) |
boolean[] |
create_booleans() |
boolean[] |
create_booleans(long listOffset) |
byte[] |
create_bytes() |
byte[] |
create_bytes(long listOffset) |
char[] |
create_chars() |
char[] |
create_chars(long listOffset) |
double[] |
create_doubles() |
double[] |
create_doubles(long listOffset) |
float[] |
create_floats() |
float[] |
create_floats(long listOffset) |
int[] |
create_ints() |
int[] |
create_ints(long listOffset) |
long[] |
create_longs() |
long[] |
create_longs(long listOffset) |
short[] |
create_shorts() |
short[] |
create_shorts(long listOffset) |
static long |
entityContentLength(long entityTotalLength) |
static int |
entityHeaderLength() |
static long |
entityTotalLength(long entityContentLength) |
static <T> BinaryField<T> |
Field_boolean(String name,
one.microstream.reflect.Getter_boolean<T> getter) |
static <T> BinaryField<T> |
Field_boolean(String name,
one.microstream.reflect.Getter_boolean<T> getter,
one.microstream.reflect.Setter_boolean<T> setter) |
static <T> BinaryField<T> |
Field_byte(String name,
one.microstream.reflect.Getter_byte<T> getter) |
static <T> BinaryField<T> |
Field_byte(String name,
one.microstream.reflect.Getter_byte<T> getter,
one.microstream.reflect.Setter_byte<T> setter) |
static <T> BinaryField<T> |
Field_char(String name,
one.microstream.reflect.Getter_char<T> getter) |
static <T> BinaryField<T> |
Field_char(String name,
one.microstream.reflect.Getter_char<T> getter,
one.microstream.reflect.Setter_char<T> setter) |
static <T> BinaryField<T> |
Field_double(String name,
one.microstream.reflect.Getter_double<T> getter) |
static <T> BinaryField<T> |
Field_double(String name,
one.microstream.reflect.Getter_double<T> getter,
one.microstream.reflect.Setter_double<T> setter) |
static <T> BinaryField<T> |
Field_float(String name,
one.microstream.reflect.Getter_float<T> getter) |
static <T> BinaryField<T> |
Field_float(String name,
one.microstream.reflect.Getter_float<T> getter,
one.microstream.reflect.Setter_float<T> setter) |
static <T> BinaryField<T> |
Field_int(String name,
one.microstream.reflect.Getter_int<T> getter) |
static <T> BinaryField<T> |
Field_int(String name,
one.microstream.reflect.Getter_int<T> getter,
one.microstream.reflect.Setter_int<T> setter) |
static <T> BinaryField<T> |
Field_long(String name,
one.microstream.reflect.Getter_long<T> getter) |
static <T> BinaryField<T> |
Field_long(String name,
one.microstream.reflect.Getter_long<T> getter,
one.microstream.reflect.Setter_long<T> setter) |
static <T> BinaryField<T> |
Field_short(String name,
one.microstream.reflect.Getter_short<T> getter) |
static <T> BinaryField<T> |
Field_short(String name,
one.microstream.reflect.Getter_short<T> getter,
one.microstream.reflect.Setter_short<T> setter) |
static <T,R> BinaryField<T> |
Field(Class<R> referenceType,
String name,
one.microstream.reflect.Getter<T,R> getter) |
static <T,R> BinaryField<T> |
Field(Class<R> referenceType,
String name,
one.microstream.reflect.Getter<T,R> getter,
one.microstream.reflect.Setter<T,R> setter) |
long |
getBinaryListElementCountUnvalidating(long listOffset) |
long |
getBinaryListElementCountValidating(long listOffset,
long elementLength) |
long |
getBinaryListTotalByteLength(long listOffset) |
long |
getBuildItemContentLength() |
long |
getBuildItemObjectId() |
long |
getBuildItemTotalLength() |
long |
getBuildItemTypeId() |
static long |
getEntityLengthRawValue(long entityAddress) |
static long |
getEntityObjectIdRawValue(long entityAddress) |
static long |
getEntityTypeIdRawValue(long entityAddress) |
Object |
getHelper(Object key)
Helper instances can be used as temporary additional state for the duration of the building process.
|
long |
getListElementCount(long listStartOffset,
int elementLength) |
long |
getListElementCountKeyValue(long listStartOffset) |
long |
getListElementCountReferences(long listStartOffset) |
long |
getLoadItemAvailableContentLength() |
int |
getSizedArrayElementCount(long headerOffset) |
long |
getSizedArrayElementsAddress(long headerOffset) |
int |
getSizedArrayLength(long sizedArrayOffset) |
protected boolean |
isDummyItem() |
protected boolean |
isProper() |
boolean |
isSwitchedByteOrder() |
static boolean |
isValidEntityLength(long entityLength) |
static boolean |
isValidGapLength(long gapLength) |
abstract void |
iterateChannelChunks(Consumer<? super Binary> logic) |
abstract void |
iterateEntityData(BinaryEntityDataReader reader) |
void |
iterateKeyValueEntriesReferences(long listOffset,
PersistenceObjectIdAcceptor iterator) |
void |
iterateListElementReferences(long listOffset,
PersistenceObjectIdAcceptor iterator) |
static void |
iterateListStructureCompositeElements(Binary data,
long elementsListOffset,
int elementReferencesOffset,
int elementReferenceCount,
int elementTrailingBytes,
PersistenceReferenceLoader iterator)
Usage example:
For an entity solely consisting of a list of elements with each (2 ints, 1 float, 1 reference), call: iterateReferences(data, 0, 12, 1, 0, iterator).(2*4 bytes + 1*4 bytes, 1 reference, no trailing bytes) |
long |
iterateListStructureElements(long listOffset,
BinaryElementReader reader)
Iterates over all elements of a binary list.
|
void |
iterateListStructureReferenceRange(long listOffset,
int referencesPerElement,
PersistenceObjectIdAcceptor iterator) |
void |
iterateReferenceRange(long startOffset,
long boundOffset,
PersistenceObjectIdAcceptor iterator) |
void |
iterateReferenceRangeUnvalidated(long startOffset,
long boundOffset,
PersistenceObjectIdAcceptor iterator) |
abstract long |
iterateReferences(BinaryReferenceTraverser[] traversers,
PersistenceObjectIdAcceptor acceptor) |
void |
iterateSizedArrayElementReferences(long offset,
PersistenceObjectIdAcceptor iterator) |
static long |
keyValueBinaryLength() |
static long |
keyValueReferenceCount(long elementCount) |
static int |
lengthLength() |
abstract void |
modifyLoadItem(ByteBuffer directByteBuffer,
long offset,
long entityTotalLength,
long entityTypeId,
long entityObjectId) |
static int |
objectIdByteLength() |
boolean |
read_boolean(long offset) |
byte |
read_byte(long offset) |
char |
read_char(long offset) |
double |
read_double(long offset) |
float |
read_float(long offset) |
int |
read_int(long offset) |
long |
read_long(long offset) |
short |
read_short(long offset) |
static long |
referenceBinaryLength(long referenceCount) |
void |
registerHelper(Object key,
Object helper)
Helper instances can be used as temporary additional state for the duration of the building process.
|
void |
store_boolean(boolean value) |
void |
store_boolean(long offset,
boolean value) |
void |
store_booleans(long typeId,
long objectId,
boolean[] array) |
void |
store_byte(byte value) |
void |
store_byte(long offset,
byte value) |
void |
store_bytes(long typeId,
long objectId,
byte[] array) |
void |
store_char(char value) |
void |
store_char(long offset,
char value) |
void |
store_chars(long typeId,
long objectId,
char[] array) |
void |
store_double(double value) |
void |
store_double(long offset,
double value) |
void |
store_doubles(long typeId,
long objectId,
double[] array) |
void |
store_float(float value) |
void |
store_float(long offset,
float value) |
void |
store_floats(long typeId,
long objectId,
float[] array) |
void |
store_int(int value) |
void |
store_int(long offset,
int value) |
void |
store_ints(long typeId,
long objectId,
int[] array) |
void |
store_long(long value) |
void |
store_long(long offset,
long value) |
void |
store_longs(long typeId,
long objectId,
long[] array) |
void |
store_short(long offset,
short value) |
void |
store_short(short value) |
void |
store_shorts(long typeId,
long objectId,
short[] array) |
void |
storeBoolean(long typeId,
long objectId,
boolean value) |
void |
storeByte(long typeId,
long objectId,
byte value) |
void |
storeCharacter(long typeId,
long objectId,
char value) |
long |
storeCharsAsList(long memoryOffset,
char[] chars,
int offset,
int length) |
void |
storeDouble(long typeId,
long objectId,
double value) |
abstract void |
storeEntityHeader(long entityContentLength,
long entityTypeId,
long entityObjectId) |
void |
storeFixedSize(PersistenceStoreHandler<Binary> handler,
long contentLength,
long typeId,
long objectId,
Object instance,
long[] memoryOffsets,
BinaryValueStorer[] storers) |
void |
storeFloat(long typeId,
long objectId,
float value) |
void |
storeInteger(long typeId,
long objectId,
int value) |
void |
storeIterableAsList(long tid,
long oid,
long headerOffset,
Iterable<?> elements,
long size,
PersistenceFunction persister) |
void |
storeIterableContentAsList(long offset,
PersistenceFunction persister,
Iterable<?> elements,
long elementCount) |
void |
storeKeyValuesAsEntries(long typeId,
long objectId,
long headerOffset,
Iterable<? extends one.microstream.typing.KeyValue<?,?>> keyValues,
long size,
PersistenceFunction persister) |
void |
storeKeyValuesAsEntries(long offset,
PersistenceFunction persister,
Iterable<? extends one.microstream.typing.KeyValue<?,?>> elements,
long elementCount) |
void |
storeListHeader(long offset,
long elementsBinaryLength,
long elementsCount) |
void |
storeLong(long typeId,
long objectId,
long value) |
<K,V> void |
storeMapEntrySet(long typeId,
long objectId,
long headerOffset,
Set<Map.Entry<K,V>> entrySet,
PersistenceFunction persister) |
void |
storeReferences(long typeId,
long objectId,
long binaryOffset,
PersistenceFunction persister,
Object[] array) |
void |
storeReferences(long typeId,
long objectId,
long binaryOffset,
PersistenceFunction persister,
Object[] array,
int arrayOffset,
int arrayLength) |
void |
storeReferencesAsList(long memoryOffset,
PersistenceFunction persister,
Object[] array,
int offset,
int length) |
void |
storeRoots(long typeId,
long objectId,
one.microstream.collections.types.XGettingTable<String,Object> entries,
PersistenceFunction persister) |
void |
storeShort(long typeId,
long objectId,
short value) |
void |
storeSizedArray(long tid,
long oid,
long headerOffset,
Object[] array,
int offset,
int size,
PersistenceFunction persister) |
void |
storeSizedArray(long tid,
long oid,
long headerOffset,
Object[] array,
int size,
PersistenceFunction persister) |
void |
storeStateless(long typeId,
long objectId) |
void |
storeStringsAsList(long memoryOffset,
long precalculatedContentBinaryLength,
String[] strings) |
void |
storeStringsAsList(long memoryOffset,
long precalculatedContentBinaryLength,
String[] strings,
int offset,
int length) |
void |
storeStringSingleValue(long typeId,
long objectId,
char[] chars) |
void |
storeStringSingleValue(long typeId,
long objectId,
char[] chars,
int offset,
int length) |
void |
storeStringSingleValue(long typeId,
long objectId,
String string) |
void |
storeStringValue(long binaryOffset,
char[] chars) |
void |
storeStringValue(long binaryOffset,
char[] chars,
int offset,
int length) |
void |
storeStringValue(long binaryOffset,
String string) |
static long |
toBinaryListByteLengthOffset(long binaryListOffset) |
static long |
toBinaryListContentByteLength(long binaryListTotalByteLength) |
static long |
toBinaryListElementCountOffset(long binaryListOffset) |
static long |
toBinaryListElementsOffset(long binaryListOffset) |
static long |
toBinaryListTotalByteLength(long binaryListElementsByteLength) |
static long |
toEntityContentOffset(long entityOffset) |
static <T> BinaryTypeHandler<T> |
TypeHandler(Class<T> entityType,
BinaryField<? super T>... binaryFields) |
static <T> BinaryTypeHandler<T> |
TypeHandler(Class<T> entityType,
PersistenceTypeInstantiator<Binary,T> instantiator,
BinaryField<? super T>... binaryFields) |
void |
update_booleans(boolean[] array) |
void |
update_booleans(long offset,
boolean[] array) |
void |
update_bytes(byte[] array) |
void |
update_bytes(long offset,
byte[] array) |
void |
update_chars(char[] array) |
void |
update_chars(long offset,
char[] array) |
void |
update_doubles(double[] array) |
void |
update_doubles(long offset,
double[] array) |
void |
update_floats(float[] array) |
void |
update_floats(long offset,
float[] array) |
void |
update_ints(int[] array) |
void |
update_ints(long offset,
int[] array) |
void |
update_longs(long[] array) |
void |
update_longs(long offset,
long[] array) |
void |
update_shorts(long offset,
short[] array) |
void |
update_shorts(short[] array) |
void |
updateArrayObjectReferences(long binaryListStartOffset,
PersistenceLoadHandler handler,
Object[] array,
int arrayOffset,
int arrayLength) |
void |
updateArrayObjectReferences1(long binaryListStartOffset,
PersistenceLoadHandler handler,
Object[] array) |
void |
updateFixedSize(Object instance,
BinaryValueSetter[] setters,
long[] memoryOffsets,
PersistenceLoadHandler handler) |
int |
updateSizedArrayObjectReferences(long binaryOffset,
PersistenceLoadHandler handler,
Object[] array)
Updates the passed array up to the size defined by the binary data, returns the size.
|
void |
validateArrayLength(Object[] array,
long headerOffset) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, isEmpty, totalLengthpublic static long keyValueReferenceCount(long elementCount)
public static long keyValueBinaryLength()
public static long binaryListMinimumLength()
public static long binaryListMaximumLength()
public static long toBinaryListTotalByteLength(long binaryListElementsByteLength)
public static long toBinaryListContentByteLength(long binaryListTotalByteLength)
public static int lengthLength()
public static boolean isValidGapLength(long gapLength)
public static boolean isValidEntityLength(long entityLength)
public static int entityHeaderLength()
public static long entityTotalLength(long entityContentLength)
public static long entityContentLength(long entityTotalLength)
public static long toEntityContentOffset(long entityOffset)
public static final long toBinaryListByteLengthOffset(long binaryListOffset)
public static final long toBinaryListElementCountOffset(long binaryListOffset)
public static long toBinaryListElementsOffset(long binaryListOffset)
public static int objectIdByteLength()
public static long referenceBinaryLength(long referenceCount)
public static long calculateReferenceListTotalBinaryLength(long count)
public static long calculateStringListContentBinaryLength(String[] strings)
public static long calculateBinaryLengthChars(long count)
public static final long getEntityLengthRawValue(long entityAddress)
public static final long getEntityTypeIdRawValue(long entityAddress)
public static final long getEntityObjectIdRawValue(long entityAddress)
public abstract ByteBuffer[] buffers()
public boolean isSwitchedByteOrder()
public final long getBuildItemTotalLength()
public final long getBuildItemContentLength()
public final long getBuildItemTypeId()
public final long getBuildItemObjectId()
public abstract void storeEntityHeader(long entityContentLength,
long entityTypeId,
long entityObjectId)
public final long getListElementCountKeyValue(long listStartOffset)
public final byte read_byte(long offset)
public final boolean read_boolean(long offset)
public final short read_short(long offset)
public final char read_char(long offset)
public final int read_int(long offset)
public final float read_float(long offset)
public final long read_long(long offset)
public final double read_double(long offset)
public abstract Binary channelChunk(int channelIndex)
public abstract int channelCount()
public abstract void iterateEntityData(BinaryEntityDataReader reader)
public final void storeKeyValuesAsEntries(long typeId,
long objectId,
long headerOffset,
Iterable<? extends one.microstream.typing.KeyValue<?,?>> keyValues,
long size,
PersistenceFunction persister)
public final <K,V> void storeMapEntrySet(long typeId,
long objectId,
long headerOffset,
Set<Map.Entry<K,V>> entrySet,
PersistenceFunction persister)
public final void storeSizedArray(long tid,
long oid,
long headerOffset,
Object[] array,
int size,
PersistenceFunction persister)
public final void storeSizedArray(long tid,
long oid,
long headerOffset,
Object[] array,
int offset,
int size,
PersistenceFunction persister)
public final void storeRoots(long typeId,
long objectId,
one.microstream.collections.types.XGettingTable<String,Object> entries,
PersistenceFunction persister)
public final <T extends one.microstream.collections.types.XAddingMap<String,Long>> T buildRootMapping(T mapping)
public final void storeIterableAsList(long tid,
long oid,
long headerOffset,
Iterable<?> elements,
long size,
PersistenceFunction persister)
public int getSizedArrayElementCount(long headerOffset)
public final int getSizedArrayLength(long sizedArrayOffset)
public final long getSizedArrayElementsAddress(long headerOffset)
public final void validateArrayLength(Object[] array, long headerOffset)
public final long getBinaryListTotalByteLength(long listOffset)
public final long getLoadItemAvailableContentLength()
public final long getBinaryListElementCountValidating(long listOffset,
long elementLength)
public final long getBinaryListElementCountUnvalidating(long listOffset)
public final long getListElementCount(long listStartOffset,
int elementLength)
public final long getListElementCountReferences(long listStartOffset)
public final long iterateListStructureElements(long listOffset,
BinaryElementReader reader)
listOffset - the binary offset at which the binary list (actually: its header) startsreader - the reader logic to be used by the iteration.public final void iterateListElementReferences(long listOffset,
PersistenceObjectIdAcceptor iterator)
public final void iterateSizedArrayElementReferences(long offset,
PersistenceObjectIdAcceptor iterator)
public final void iterateListStructureReferenceRange(long listOffset,
int referencesPerElement,
PersistenceObjectIdAcceptor iterator)
public static void iterateListStructureCompositeElements(Binary data, long elementsListOffset, int elementReferencesOffset, int elementReferenceCount, int elementTrailingBytes, PersistenceReferenceLoader iterator)
iterateReferences(data, 0, 12, 1, 0, iterator).
For an entity solely consisting of a list of elements with each (1 ints, 3 reference, 1 short), call:
iterateReferences(data, 0, 4, 3, 2, iterator).
(1*4 bytes, 3 references, 1*2 trailing bytes)
data - the Binary instance to read the data from.elementsListOffset - the offset in bytes where the elements list is located in the whole entity.elementReferencesOffset - the offset in bytes where the references are located in each element.elementReferenceCount - the amount of references in each element.elementTrailingBytes - the number of bytes after the references in each element.iterator - the iterator to process the reference ids.public final void iterateKeyValueEntriesReferences(long listOffset,
PersistenceObjectIdAcceptor iterator)
public final void iterateReferenceRange(long startOffset,
long boundOffset,
PersistenceObjectIdAcceptor iterator)
public final void iterateReferenceRangeUnvalidated(long startOffset,
long boundOffset,
PersistenceObjectIdAcceptor iterator)
public final void store_bytes(long typeId,
long objectId,
byte[] array)
public final void store_booleans(long typeId,
long objectId,
boolean[] array)
public final void store_shorts(long typeId,
long objectId,
short[] array)
public final void store_chars(long typeId,
long objectId,
char[] array)
public final void store_ints(long typeId,
long objectId,
int[] array)
public final void store_floats(long typeId,
long objectId,
float[] array)
public final void store_longs(long typeId,
long objectId,
long[] array)
public final void store_doubles(long typeId,
long objectId,
double[] array)
public final void storeByte(long typeId,
long objectId,
byte value)
public final void storeBoolean(long typeId,
long objectId,
boolean value)
public final void storeShort(long typeId,
long objectId,
short value)
public final void storeCharacter(long typeId,
long objectId,
char value)
public final void storeInteger(long typeId,
long objectId,
int value)
public final void storeFloat(long typeId,
long objectId,
float value)
public final void storeLong(long typeId,
long objectId,
long value)
public final void storeDouble(long typeId,
long objectId,
double value)
public final void storeStateless(long typeId,
long objectId)
public final void storeStringSingleValue(long typeId,
long objectId,
String string)
public final void storeStringSingleValue(long typeId,
long objectId,
char[] chars)
public final void storeStringSingleValue(long typeId,
long objectId,
char[] chars,
int offset,
int length)
public final void storeStringValue(long binaryOffset,
String string)
public final void storeStringValue(long binaryOffset,
char[] chars)
public final void storeStringValue(long binaryOffset,
char[] chars,
int offset,
int length)
public final void storeReferences(long typeId,
long objectId,
long binaryOffset,
PersistenceFunction persister,
Object[] array)
public final void storeReferences(long typeId,
long objectId,
long binaryOffset,
PersistenceFunction persister,
Object[] array,
int arrayOffset,
int arrayLength)
public final void storeFixedSize(PersistenceStoreHandler<Binary> handler, long contentLength, long typeId, long objectId, Object instance, long[] memoryOffsets, BinaryValueStorer[] storers)
public final String[] buildStrings(long stringsListOffset)
public final Byte buildByte()
public final Byte buildByte(long offset)
public final Boolean buildBoolean()
public final Boolean buildBoolean(long offset)
public final Short buildShort()
public final Short buildShort(long offset)
public final Character buildCharacter()
public final Character buildCharacter(long offset)
public final Integer buildInteger()
public final Integer buildInteger(long offset)
public final Float buildFloat()
public final Float buildFloat(long offset)
public final Long buildLong()
public final Long buildLong(long offset)
public final Double buildDouble()
public final Double buildDouble(long offset)
public final Object buildPrimitiveWrapper(Class<?> primitiveValueType, long offset)
public final String buildString()
public final String buildString(long offset)
public final byte[] create_bytes()
public final byte[] create_bytes(long listOffset)
public final boolean[] create_booleans()
public final boolean[] create_booleans(long listOffset)
public final short[] create_shorts()
public final short[] create_shorts(long listOffset)
public final char[] create_chars()
public final char[] create_chars(long listOffset)
public final int[] create_ints()
public final int[] create_ints(long listOffset)
public final float[] create_floats()
public final float[] create_floats(long listOffset)
public final long[] create_longs()
public final long[] create_longs(long listOffset)
public final double[] create_doubles()
public final double[] create_doubles(long listOffset)
public final byte[] build_bytes()
public final byte[] build_bytes(long listOffset)
public final boolean[] build_booleans()
public final boolean[] build_booleans(long listOffset)
public final short[] build_shorts()
public final short[] build_shorts(long listOffset)
public final char[] build_chars()
public final char[] build_chars(long listOffset)
public final int[] build_ints()
public final int[] build_ints(long listOffset)
public final float[] build_floats()
public final float[] build_floats(long listOffset)
public final long[] build_longs()
public final long[] build_longs(long listOffset)
public final double[] build_doubles()
public final double[] build_doubles(long listOffset)
public final void collectElementsIntoArray(long binaryOffset,
PersistenceLoadHandler handler,
Object[] target)
public final int collectListObjectReferences(long binaryOffset,
PersistenceLoadHandler handler,
Consumer<Object> collector)
public final void collectObjectReferences(long binaryOffset,
int length,
PersistenceLoadHandler handler,
Consumer<Object> collector)
public final int collectKeyValueReferences(long binaryOffset,
int length,
PersistenceLoadHandler handler,
BiConsumer<Object,Object> collector)
public abstract long iterateReferences(BinaryReferenceTraverser[] traversers, PersistenceObjectIdAcceptor acceptor)
public final long storeCharsAsList(long memoryOffset,
char[] chars,
int offset,
int length)
public final void copyMemory(ByteBuffer directByteBuffer, long offset, BinaryValueSetter[] setters, long[] targetOffsets)
public final void storeListHeader(long offset,
long elementsBinaryLength,
long elementsCount)
public final void storeIterableContentAsList(long offset,
PersistenceFunction persister,
Iterable<?> elements,
long elementCount)
public final void storeStringsAsList(long memoryOffset,
long precalculatedContentBinaryLength,
String[] strings)
public final void storeStringsAsList(long memoryOffset,
long precalculatedContentBinaryLength,
String[] strings,
int offset,
int length)
public final void storeKeyValuesAsEntries(long offset,
PersistenceFunction persister,
Iterable<? extends one.microstream.typing.KeyValue<?,?>> elements,
long elementCount)
public final void storeReferencesAsList(long memoryOffset,
PersistenceFunction persister,
Object[] array,
int offset,
int length)
public final void store_byte(long offset,
byte value)
public final void store_boolean(long offset,
boolean value)
public final void store_short(long offset,
short value)
public final void store_char(long offset,
char value)
public final void store_int(long offset,
int value)
public final void store_float(long offset,
float value)
public final void store_long(long offset,
long value)
public final void store_double(long offset,
double value)
public final void store_byte(byte value)
public final void store_boolean(boolean value)
public final void store_short(short value)
public final void store_char(char value)
public final void store_int(int value)
public final void store_float(float value)
public final void store_long(long value)
public final void store_double(double value)
protected final boolean isDummyItem()
protected final boolean isProper()
public abstract void modifyLoadItem(ByteBuffer directByteBuffer, long offset, long entityTotalLength, long entityTypeId, long entityObjectId)
public final void updateFixedSize(Object instance, BinaryValueSetter[] setters, long[] memoryOffsets, PersistenceLoadHandler handler)
public final int updateSizedArrayObjectReferences(long binaryOffset,
PersistenceLoadHandler handler,
Object[] array)
binaryOffset - the offset of the array size in the binary datahandler - the persistence load handlerarray - the array to updatepublic final void updateArrayObjectReferences1(long binaryListStartOffset,
PersistenceLoadHandler handler,
Object[] array)
public final void updateArrayObjectReferences(long binaryListStartOffset,
PersistenceLoadHandler handler,
Object[] array,
int arrayOffset,
int arrayLength)
public final void update_bytes(byte[] array)
public final void update_bytes(long offset,
byte[] array)
public final void update_booleans(boolean[] array)
public final void update_booleans(long offset,
boolean[] array)
public final void update_shorts(short[] array)
public final void update_shorts(long offset,
short[] array)
public final void update_chars(char[] array)
public final void update_chars(long offset,
char[] array)
public final void update_ints(int[] array)
public final void update_ints(long offset,
int[] array)
public final void update_floats(float[] array)
public final void update_floats(long offset,
float[] array)
public final void update_longs(long[] array)
public final void update_longs(long offset,
long[] array)
public final void update_doubles(double[] array)
public final void update_doubles(long offset,
double[] array)
public final void registerHelper(Object key, Object helper)
Similar problems with other or complex custom handlers are conceivable.
Only one helper object can be registered per subject instance (the instance to be built).
key - the object to register the helper forhelper - the helper to registerpublic final Object getHelper(Object key)
Similar problems with other or complex custom handlers are conceivable.
key - the object to get the helper fornull if none is registered for the key objectpublic static final <T> BinaryField<T> Field_byte(String name, one.microstream.reflect.Getter_byte<T> getter)
public static final <T> BinaryField<T> Field_byte(String name, one.microstream.reflect.Getter_byte<T> getter, one.microstream.reflect.Setter_byte<T> setter)
public static final <T> BinaryField<T> Field_boolean(String name, one.microstream.reflect.Getter_boolean<T> getter)
public static final <T> BinaryField<T> Field_boolean(String name, one.microstream.reflect.Getter_boolean<T> getter, one.microstream.reflect.Setter_boolean<T> setter)
public static final <T> BinaryField<T> Field_short(String name, one.microstream.reflect.Getter_short<T> getter)
public static final <T> BinaryField<T> Field_short(String name, one.microstream.reflect.Getter_short<T> getter, one.microstream.reflect.Setter_short<T> setter)
public static final <T> BinaryField<T> Field_char(String name, one.microstream.reflect.Getter_char<T> getter)
public static final <T> BinaryField<T> Field_char(String name, one.microstream.reflect.Getter_char<T> getter, one.microstream.reflect.Setter_char<T> setter)
public static final <T> BinaryField<T> Field_int(String name, one.microstream.reflect.Getter_int<T> getter)
public static final <T> BinaryField<T> Field_int(String name, one.microstream.reflect.Getter_int<T> getter, one.microstream.reflect.Setter_int<T> setter)
public static final <T> BinaryField<T> Field_float(String name, one.microstream.reflect.Getter_float<T> getter)
public static final <T> BinaryField<T> Field_float(String name, one.microstream.reflect.Getter_float<T> getter, one.microstream.reflect.Setter_float<T> setter)
public static final <T> BinaryField<T> Field_long(String name, one.microstream.reflect.Getter_long<T> getter)
public static final <T> BinaryField<T> Field_long(String name, one.microstream.reflect.Getter_long<T> getter, one.microstream.reflect.Setter_long<T> setter)
public static final <T> BinaryField<T> Field_double(String name, one.microstream.reflect.Getter_double<T> getter)
public static final <T> BinaryField<T> Field_double(String name, one.microstream.reflect.Getter_double<T> getter, one.microstream.reflect.Setter_double<T> setter)
public static final <T,R> BinaryField<T> Field(Class<R> referenceType, String name, one.microstream.reflect.Getter<T,R> getter)
public static final <T,R> BinaryField<T> Field(Class<R> referenceType, String name, one.microstream.reflect.Getter<T,R> getter, one.microstream.reflect.Setter<T,R> setter)
@SafeVarargs public static <T> BinaryTypeHandler<T> TypeHandler(Class<T> entityType, BinaryField<? super T>... binaryFields)
@SafeVarargs public static <T> BinaryTypeHandler<T> TypeHandler(Class<T> entityType, PersistenceTypeInstantiator<Binary,T> instantiator, BinaryField<? super T>... binaryFields)
Copyright © 2022 MicroStream Software. All rights reserved.