public class HashMapStreamSerializer<K,V> extends Object
HashMap serializer
Important Note: The HashMap 'loadfactor' is not serialized.| Constructor and Description |
|---|
HashMapStreamSerializer() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Called when instance is shutting down.
|
int |
getTypeId() |
HashMap<K,V> |
read(ObjectDataInput in)
Reads object from objectDataInputStream
|
void |
write(ObjectDataOutput out,
MapType map)
This method writes object to ObjectDataOutput
|
public int getTypeId()
public HashMap<K,V> read(ObjectDataInput in) throws IOException
StreamSerializerin - ObjectDataInput stream that object will read fromIOException - in case of failure to readpublic void write(ObjectDataOutput out, MapType map) throws IOException
StreamSerializerwrite in interface StreamSerializer<MapType extends Map>out - ObjectDataOutput stream that object will be written tomap - that will be written to outIOException - in case of failure to writepublic void destroy()
Serializerdestroy in interface SerializerCopyright © 2019 Hazelcast, Inc.. All rights reserved.