public class MapSerializer extends SimpleTypeSerializer<Map>
| Constructor and Description |
|---|
MapSerializer() |
| Modifier and Type | Method and Description |
|---|---|
Map |
readValue(ByteBuf buffer,
GraphBinaryReader context)
Reads a non-nullable value according to the type format.
|
ByteBuf |
writeValue(Map value,
ByteBufAllocator allocator,
GraphBinaryWriter context)
Writes a non-nullable value into a buffer using the provided allocator.
|
getDataType, read, readValue, write, writeValuepublic Map readValue(ByteBuf buffer, GraphBinaryReader context) throws SerializationException
SimpleTypeSerializerbuffer - A buffer which reader index has been set to the beginning of the {value}.context - The binary writer.SerializationExceptionpublic ByteBuf writeValue(Map value, ByteBufAllocator allocator, GraphBinaryWriter context) throws SerializationException
SimpleTypeSerializerwriteValue in class SimpleTypeSerializer<Map>value - A non-nullable value.allocator - The buffer allocator to use.context - The binary writer.SerializationExceptionCopyright © 2013–2019 Apache Software Foundation. All rights reserved.