| Constructor and Description |
|---|
DefaultData() |
DefaultData(byte[] data) |
| Modifier and Type | Method and Description |
|---|---|
int |
dataSize()
Returns size of internal binary data in bytes
|
boolean |
equals(Object o) |
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.
|
int |
hashCode() |
boolean |
hasPartitionHash()
Returns true if Data has partition hash, false otherwise.
|
boolean |
isPortable()
Returns true if this Data is created from a
Portable object,
false otherwise. |
byte[] |
toByteArray()
Returns byte array representation of internal binary format.
|
String |
toString() |
int |
totalSize()
Returns the total size of Data in bytes
|
public int dataSize()
Datapublic int totalSize()
Datapublic int getPartitionHash()
DataPartitioningStrategy during serialization.
If partition hash is not set then standard hashCode() is used.getPartitionHash in interface DataPartitionAware,
PartitioningStrategy,
SerializationService.toData(Object, com.hazelcast.core.PartitioningStrategy)public boolean hasPartitionHash()
DatahasPartitionHash in interface Datapublic byte[] toByteArray()
DatatoByteArray in interface Datapublic int getType()
DataSerializer.getTypeId()public int getHeapCost()
DatagetHeapCost in interface Datapublic long hash64()
Datapublic boolean isPortable()
DataPortable object,
false otherwise.isPortable in interface DataCopyright © 2015 Hazelcast, Inc.. All Rights Reserved.