K
- the type of keyV
- the type of valuepublic class MergingEntryImpl<K,V> extends Object implements MergingEntry<K,V>, MergingCreationTime, SerializationServiceAware, IdentifiedDataSerializable
MergingEntry
.Constructor and Description |
---|
MergingEntryImpl() |
MergingEntryImpl(SerializationService serializationService) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
long |
getCreationTime()
Returns the creation time of the merge data.
|
Object |
getDeserializedKey()
Returns the deserialized merging key.
|
Object |
getDeserializedValue()
Returns the deserialized merging value.
|
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
int |
getId()
Returns type identifier for this class.
|
K |
getKey()
Returns the merging key in the in-memory format of the backing data structure.
|
V |
getValue()
Returns the merging value in the in-memory format of the backing data structure.
|
int |
hashCode() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
MergingEntryImpl<K,V> |
setCreationTime(long creationTime) |
MergingEntryImpl<K,V> |
setKey(K key) |
void |
setSerializationService(SerializationService serializationService)
Gets the SerializationService reference injected.
|
MergingEntryImpl<K,V> |
setValue(V value) |
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public MergingEntryImpl()
public MergingEntryImpl(SerializationService serializationService)
public K getKey()
MergingEntry
getKey
in interface MergingEntry<K,V>
public Object getDeserializedKey()
MergingEntry
getDeserializedKey
in interface MergingEntry<K,V>
public MergingEntryImpl<K,V> setKey(K key)
public V getValue()
MergingValue
getValue
in interface MergingValue<V>
public Object getDeserializedValue()
MergingValue
getDeserializedValue
in interface MergingValue<V>
public MergingEntryImpl<K,V> setValue(V value)
public long getCreationTime()
MergingCreationTime
getCreationTime
in interface MergingCreationTime
public MergingEntryImpl<K,V> setCreationTime(long creationTime)
public void setSerializationService(SerializationService serializationService)
SerializationServiceAware
setSerializationService
in interface SerializationServiceAware
serializationService
- the SerializationService referencepublic void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
input stream has been closed.public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.