public class MapAsObjectSerializer<V> extends Object implements Serializer<Map<String,V>>
| Constructor and Description |
|---|
MapAsObjectSerializer(Serializer<V> serializer) |
| Modifier and Type | Method and Description |
|---|---|
SerializerFormatDefinition |
getFormatDefinition()
Get the definition that describes what this serializer can
read and write.
|
Map<String,V> |
read(StreamingInput in)
Read an object from the specified stream.
|
void |
write(Map<String,V> object,
String name,
StreamingOutput stream)
Write and object to the specified stream.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfromBytes, fromBytes, toBytes, toBytespublic MapAsObjectSerializer(Serializer<V> serializer)
public Map<String,V> read(StreamingInput in) throws IOException
Serializerread in interface Serializer<Map<String,V>>IOExceptionpublic void write(Map<String,V> object, String name, StreamingOutput stream) throws IOException
Serializerwrite in interface Serializer<Map<String,V>>object - object to writename - the name it should have in the streamstream - the stream to useIOExceptionpublic SerializerFormatDefinition getFormatDefinition()
SerializergetFormatDefinition in interface Serializer<Map<String,V>>Copyright © 2017. All rights reserved.