public interface Data
SerializationService.toData(Object).| Modifier and Type | Method and Description |
|---|---|
int |
dataSize()
Returns size of binary data
|
byte[] |
getData()
Returns byte array representation of internal binary format.
|
byte[] |
getHeader()
Returns byte array representation of header.
|
int |
getHeapCost()
Returns approximate heap cost of this Data object in bytes.
|
int |
getPartitionHash()
Returns partition hash calculated for serialized object.
|
int |
getType()
Returns serialization type of binary form.
|
long |
hash64()
Returns 64-bit hash code for this Data object.
|
boolean |
hasPartitionHash()
Returns true if Data has partition hash, false otherwise.
|
int |
headerSize()
Returns size of header.
|
boolean |
isPortable()
Returns true if this Data is created from a
Portable object,
false otherwise. |
int |
readIntHeader(int offset,
ByteOrder order)
Reads an integer header from given offset using given ByteOrder.
|
byte[] getData()
int getType()
Serializer.getTypeId()int dataSize()
int getHeapCost()
int getPartitionHash()
PartitioningStrategy during serialization.
If partition hash is not set then standard hashCode() is used.PartitionAware,
PartitioningStrategy,
SerializationService.toData(Object, com.hazelcast.core.PartitioningStrategy)boolean hasPartitionHash()
long hash64()
boolean isPortable()
Portable object,
false otherwise.byte[] getHeader()
int headerSize()
int readIntHeader(int offset,
ByteOrder order)
offset - offset of integer headerorder - byte orderCopyright © 2015 Hazelcast, Inc.. All Rights Reserved.