R - Type of the Hi-Density record to be accessed.public interface HiDensityRecordAccessor<R extends HiDensityRecord>
extends com.hazelcast.memory.MemoryBlockAccessor<R>
HiDensityRecord
HiDensityRecord
HiDensityRecord
MemoryBlockAccessor,
NativeMemoryData,
HiDensityRecord| Modifier and Type | Method and Description |
|---|---|
long |
disposeData(long address)
Disposes (frees) the data at the specified
address. |
long |
disposeData(NativeMemoryData data)
Disposes (frees) the specified
NativeMemoryData. |
long |
disposeValue(R record)
Disposes (frees) the value of the specified
HiDensityRecord. |
long |
getSize(long address,
long expectedSize)
Gets the size of given
address. |
long |
getSize(com.hazelcast.memory.MemoryBlock memoryBlock)
Gets the size of given
memoryBlock. |
R |
newRecord()
Creates an empty
HiDensityRecord. |
NativeMemoryData |
readData(long valueAddress)
Reads an off-heap based data from given
address. |
Object |
readValue(R record)
Reads the value of specified
HiDensityRecord. |
R newRecord()
HiDensityRecord.HiDensityRecordNativeMemoryData readData(long valueAddress)
address.valueAddress - the address of the data stored as off-heaplong disposeData(NativeMemoryData data)
NativeMemoryData.data - the NativeMemoryData whose value will be disposedlong disposeData(long address)
address.address - the address of the NativeMemoryData whose value will be disposedaddressObject readValue(R record)
HiDensityRecord.record - the HiDensityRecord whose value will be readHiDensityRecordlong disposeValue(R record)
HiDensityRecord.record - the HiDensityRecord whose value will be disposedHiDensityRecordlong getSize(com.hazelcast.memory.MemoryBlock memoryBlock)
memoryBlock.memoryBlock - MemoryBlock whose size will be calculatedlong getSize(long address,
long expectedSize)
address.address - the address whose size will be calculatedexpectedSize - the expected size of addressCopyright © 2022 Hazelcast, Inc.. All Rights Reserved.