public class ChunksBuffer extends Binary implements MemoryRangeReader
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer[] |
buffers() |
Binary |
channelChunk(int channelIndex) |
int |
channelCount() |
void |
clear() |
ChunksBuffer |
complete() |
boolean |
isEmpty() |
void |
iterateChannelChunks(Consumer<? super Binary> logic) |
void |
iterateEntityData(BinaryEntityDataReader reader) |
long |
iterateReferences(BinaryReferenceTraverser[] traversers,
PersistenceObjectIdAcceptor acceptor) |
long |
loadItemEntityContentAddress() |
void |
modifyLoadItem(ByteBuffer directByteBuffer,
long offset,
long entityTotalLength,
long entityTypeId,
long entityObjectId) |
static ChunksBuffer |
New(ChunksBuffer[] channelBuffers,
one.microstream.util.BufferSizeProviderIncremental bufferSizeProvider) |
void |
readMemory(long address,
long length)
It is completely the caller's responsibility that the passed array contains
a valid [LEN][TID][OID][data] byte sequence.
|
void |
storeEntityHeader(long entityContentLength,
long entityTypeId,
long entityObjectId) |
long |
totalLength() |
binaryListMaximumLength, binaryListMinimumLength, build_booleans, build_booleans, build_bytes, build_bytes, build_chars, build_chars, build_doubles, build_doubles, build_floats, build_floats, build_ints, build_ints, build_longs, build_longs, build_shorts, build_shorts, buildBoolean, buildBoolean, buildByte, buildByte, buildCharacter, buildCharacter, buildDouble, buildDouble, buildFloat, buildFloat, buildInteger, buildInteger, buildLong, buildLong, buildPrimitiveWrapper, buildPrimitiveWrapper, buildRootMapping, buildShort, buildShort, buildString, buildString, buildStrings, calculateBinaryLengthChars, calculateReferenceListTotalBinaryLength, calculateStringListContentBinaryLength, collectElementsIntoArray, collectKeyValueReferences, collectListObjectReferences, collectObjectReferences, copyMemory, create_booleans, create_booleans, create_bytes, create_bytes, create_chars, create_chars, create_doubles, create_doubles, create_floats, create_floats, create_ints, create_ints, create_longs, create_longs, create_shorts, create_shorts, entityContentLength, entityHeaderLength, entityTotalLength, Field_boolean, Field_boolean, Field_byte, Field_byte, Field_char, Field_char, Field_double, Field_double, Field_float, Field_float, Field_int, Field_int, Field_long, Field_long, Field_short, Field_short, Field, Field, getBinaryListElementCountUnvalidating, getBinaryListElementCountValidating, getBinaryListTotalByteLength, getBuildItemContentLength, getBuildItemObjectId, getBuildItemTotalLength, getBuildItemTypeId, getEntityLengthRawValue, getEntityObjectIdRawValue, getEntityTypeIdRawValue, getHelper, getListElementCount, getListElementCountKeyValue, getListElementCountReferences, getLoadItemAvailableContentLength, getSizedArrayElementCount, getSizedArrayElementsAddress, getSizedArrayLength, isDummyItem, isProper, isSwitchedByteOrder, isValidEntityLength, isValidGapLength, iterateKeyValueEntriesReferences, iterateListElementReferences, iterateListStructureCompositeElements, iterateListStructureElements, iterateListStructureReferenceRange, iterateReferenceRange, iterateReferenceRangeUnvalidated, iterateSizedArrayElementReferences, keyValueBinaryLength, keyValueReferenceCount, lengthLength, objectIdByteLength, read_boolean, read_byte, read_char, read_double, read_float, read_int, read_long, read_short, referenceBinaryLength, registerHelper, store_boolean, store_boolean, store_booleans, store_byte, store_byte, store_bytes, store_char, store_char, store_chars, store_double, store_double, store_doubles, store_float, store_float, store_floats, store_int, store_int, store_ints, store_long, store_long, store_longs, store_short, store_short, store_shorts, storeBoolean, storeByte, storeCharacter, storeCharsAsList, storeDouble, storeFixedSize, storeFloat, storeInteger, storeIterableAsList, storeIterableContentAsList, storeKeyValuesAsEntries, storeKeyValuesAsEntries, storeListHeader, storeLong, storeMapEntrySet, storeReferences, storeReferences, storeReferencesAsList, storeRoots, storeShort, storeSizedArray, storeSizedArray, storeStateless, storeStringsAsList, storeStringsAsList, storeStringSingleValue, storeStringSingleValue, storeStringSingleValue, storeStringValue, storeStringValue, storeStringValue, toBinaryListByteLengthOffset, toBinaryListContentByteLength, toBinaryListElementCountOffset, toBinaryListElementsOffset, toBinaryListTotalByteLength, toEntityContentOffset, TypeHandler, TypeHandler, update_booleans, update_booleans, update_bytes, update_bytes, update_chars, update_chars, update_doubles, update_doubles, update_floats, update_floats, update_ints, update_ints, update_longs, update_longs, update_shorts, update_shorts, updateArrayObjectReferences, updateArrayObjectReferences1, updateFixedSize, updateSizedArrayObjectReferences, validateArrayLengthpublic static ChunksBuffer New(ChunksBuffer[] channelBuffers, one.microstream.util.BufferSizeProviderIncremental bufferSizeProvider)
public final Binary channelChunk(int channelIndex)
channelChunk in class Binarypublic final int channelCount()
channelCount in class Binarypublic void readMemory(long address,
long length)
readMemory in interface MemoryRangeReaderpublic final void storeEntityHeader(long entityContentLength,
long entityTypeId,
long entityObjectId)
storeEntityHeader in class Binarypublic final ByteBuffer[] buffers()
public final ChunksBuffer complete()
public void iterateEntityData(BinaryEntityDataReader reader)
iterateEntityData in class Binarypublic void iterateChannelChunks(Consumer<? super Binary> logic)
iterateChannelChunks in class Binarypublic final long totalLength()
totalLength in interface Chunkpublic final long loadItemEntityContentAddress()
public final void modifyLoadItem(ByteBuffer directByteBuffer, long offset, long entityTotalLength, long entityTypeId, long entityObjectId)
modifyLoadItem in class Binarypublic long iterateReferences(BinaryReferenceTraverser[] traversers, PersistenceObjectIdAcceptor acceptor)
iterateReferences in class BinaryCopyright © 2022 MicroStream Software. All rights reserved.