- java.lang.Object
-
- com.hazelcast.memory.MemoryBlock
-
- com.hazelcast.internal.serialization.impl.NativeMemoryData
-
- All Implemented Interfaces:
- com.hazelcast.nio.serialization.Data
public final class NativeMemoryData
extends com.hazelcast.memory.MemoryBlock
implements com.hazelcast.nio.serialization.Data
NativeMemoryData is in the form of |SIZE|PARTITION HASH CODE|TYPE-ID|SERIALIZER DATA|.
-
-
Field Summary
-
Fields inherited from class com.hazelcast.memory.MemoryBlock
address, size
-
Method Summary
-
Methods inherited from class com.hazelcast.memory.MemoryBlock
address, copyFrom, copyFromByteArray, copyTo, copyToByteArray, readByte, readChar, readDouble, readFloat, readInt, readLong, readShort, setAddress, setSize, size, writeByte, writeChar, writeDouble, writeFloat, writeInt, writeLong, writeShort, zero
-
-
Method Detail
-
totalSize
public int totalSize()
- Specified by:
totalSize in interface com.hazelcast.nio.serialization.Data
-
dataSize
public int dataSize()
- Specified by:
dataSize in interface com.hazelcast.nio.serialization.Data
-
getType
public int getType()
- Specified by:
getType in interface com.hazelcast.nio.serialization.Data
-
getHeapCost
public int getHeapCost()
- Specified by:
getHeapCost in interface com.hazelcast.nio.serialization.Data
-
hashCode
public int hashCode()
- Overrides:
hashCode in class com.hazelcast.memory.MemoryBlock
-
hash64
public long hash64()
- Specified by:
hash64 in interface com.hazelcast.nio.serialization.Data
-
isJson
public boolean isJson()
- Specified by:
isJson in interface com.hazelcast.nio.serialization.Data
-
toString
public String toString()
- Overrides:
toString in class com.hazelcast.memory.MemoryBlock
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.