Class ChunksWrapper
- java.lang.Object
-
- one.microstream.persistence.binary.types.Binary
-
- one.microstream.persistence.binary.types.ChunksWrapper
-
- All Implemented Interfaces:
Chunk
- Direct Known Subclasses:
ChunksWrapperByteReversing
public class ChunksWrapper extends Binary
-
-
Constructor Summary
Constructors Constructor Description ChunksWrapper()
-
Method Summary
Modifier and Type Method Description ByteBuffer[]buffers()BinarychannelChunk(int channelIndex)intchannelCount()voidclear()booleanisEmpty()voiditerateChannelChunks(Consumer<? super Binary> logic)voiditerateEntityData(BinaryEntityDataReader reader)longiterateReferences(BinaryReferenceTraverser[] traversers, PersistenceObjectIdAcceptor acceptor)longloadItemEntityContentAddress()voidmodifyLoadItem(ByteBuffer directByteBuffer, long offset, long entityTotalLength, long entityTypeId, long entityObjectId)static ChunksWrapperNew(ByteBuffer... chunkDirectBuffers)voidstoreEntityHeader(long entityContentLength, long entityTypeId, long entityObjectId)longtotalLength()-
Methods inherited from class one.microstream.persistence.binary.types.Binary
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, 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, getBinaryListElementCountUnvalidating, getBinaryListElementCountValidating, getBinaryListTotalByteLength, getBuildItemContentLength, getBuildItemObjectId, getBuildItemTypeId, getEntityLength, getEntityLengthRawValue, getEntityObjectId, getEntityObjectIdRawValue, getEntityTypeId, getEntityTypeIdRawValue, getHelper, getListElementCount, getListElementCountKeyValue, getListElementCountReferences, getLoadItemAvailableContentLength, getSizedArrayElementCount, getSizedArrayElementsAddress, getSizedArrayLength, isSwitchedByteOrder, isValidEntityLength, isValidGapLength, iterateKeyValueEntriesReferences, iterateListElementReferences, 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, storeStringValue, storeStringValue, storeStringValue, toBinaryListByteLengthOffset, toBinaryListContentByteLength, toBinaryListElementCountOffset, toBinaryListElementsOffset, toBinaryListTotalByteLength, toEntityContentOffset, 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, validateArrayLength
-
-
-
-
Method Detail
-
New
public static ChunksWrapper New(ByteBuffer... chunkDirectBuffers)
-
iterateEntityData
public void iterateEntityData(BinaryEntityDataReader reader)
- Specified by:
iterateEntityDatain classBinary
-
iterateChannelChunks
public void iterateChannelChunks(Consumer<? super Binary> logic)
- Specified by:
iterateChannelChunksin classBinary
-
channelChunk
public final Binary channelChunk(int channelIndex)
- Specified by:
channelChunkin classBinary
-
channelCount
public final int channelCount()
- Specified by:
channelCountin classBinary
-
isEmpty
public final boolean isEmpty()
-
totalLength
public final long totalLength()
-
buffers
public final ByteBuffer[] buffers()
-
storeEntityHeader
public final void storeEntityHeader(long entityContentLength, long entityTypeId, long entityObjectId)- Specified by:
storeEntityHeaderin classBinary
-
loadItemEntityContentAddress
public final long loadItemEntityContentAddress()
-
modifyLoadItem
public final void modifyLoadItem(ByteBuffer directByteBuffer, long offset, long entityTotalLength, long entityTypeId, long entityObjectId)
- Specified by:
modifyLoadItemin classBinary
-
clear
public final void clear()
-
iterateReferences
public long iterateReferences(BinaryReferenceTraverser[] traversers, PersistenceObjectIdAcceptor acceptor)
- Specified by:
iterateReferencesin classBinary
-
-