|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hazelcast.nio.serialization.DefaultData
public final class DefaultData
| Field Summary | |
|---|---|
static DefaultData |
NULL_DATA
|
| Constructor Summary | |
|---|---|
DefaultData()
|
|
DefaultData(byte[] data)
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final DefaultData NULL_DATA
| Constructor Detail |
|---|
public DefaultData()
public DefaultData(byte[] data)
| Method Detail |
|---|
public int dataSize()
Data
dataSize in interface Datapublic int totalSize()
Data
totalSize in interface 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()
Data
hasPartitionHash in interface Datapublic byte[] toByteArray()
Data
toByteArray in interface Datapublic int getType()
DataSerializer.getTypeId()
getType in interface Datapublic int getHeapCost()
Data
getHeapCost in interface Datapublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic long hash64()
Data
hash64 in interface Datapublic boolean isPortable()
DataPortable object,
false otherwise.
isPortable in interface Datapublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||