public class MapEntrySerializer extends SimpleTypeSerializer<Map.Entry> implements TransformSerializer<Map.Entry>
Constructor and Description |
---|
MapEntrySerializer() |
Modifier and Type | Method and Description |
---|---|
protected Map.Entry |
readValue(ByteBuf buffer,
GraphBinaryReader context)
Reads a non-nullable value according to the type format.
|
Object |
transform(Map.Entry value) |
protected void |
writeValue(Map.Entry value,
ByteBuf buffer,
GraphBinaryWriter context)
Writes a non-nullable value into a buffer using the provided allocator.
|
getDataType, read, readValue, write, writeValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDataType, read, readValue, write, writeValue
protected Map.Entry readValue(ByteBuf buffer, GraphBinaryReader context) throws SerializationException
SimpleTypeSerializer
readValue
in class SimpleTypeSerializer<Map.Entry>
buffer
- A buffer which reader index has been set to the beginning of the {value}.context
- The binary writer.SerializationException
protected void writeValue(Map.Entry value, ByteBuf buffer, GraphBinaryWriter context) throws SerializationException
SimpleTypeSerializer
writeValue
in class SimpleTypeSerializer<Map.Entry>
value
- A non-nullable value.buffer
- The buffer allocator to use.context
- The binary writer.SerializationException
public Object transform(Map.Entry value)
transform
in interface TransformSerializer<Map.Entry>
Copyright © 2013–2019 Apache Software Foundation. All rights reserved.