Class MapEntrySerializer
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.structure.io.binary.types.SimpleTypeSerializer<Map.Entry>
-
- org.apache.tinkerpop.gremlin.structure.io.binary.types.MapEntrySerializer
-
- All Implemented Interfaces:
TransformSerializer<Map.Entry>,TypeSerializer<Map.Entry>
public class MapEntrySerializer extends SimpleTypeSerializer<Map.Entry> implements TransformSerializer<Map.Entry>
-
-
Constructor Summary
Constructors Constructor Description MapEntrySerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map.EntryreadValue(Buffer buffer, GraphBinaryReader context)Reads a non-nullable value according to the type format.Objecttransform(Map.Entry value)protected voidwriteValue(Map.Entry value, Buffer buffer, GraphBinaryWriter context)Writes a non-nullable value into a buffer using the provided allocator.-
Methods inherited from class org.apache.tinkerpop.gremlin.structure.io.binary.types.SimpleTypeSerializer
getDataType, read, readValue, write, writeValue
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.tinkerpop.gremlin.structure.io.binary.TypeSerializer
getDataType, read, readValue, write, writeValue
-
-
-
-
Method Detail
-
readValue
protected Map.Entry readValue(Buffer buffer, GraphBinaryReader context) throws IOException
Description copied from class:SimpleTypeSerializerReads a non-nullable value according to the type format.- Specified by:
readValuein classSimpleTypeSerializer<Map.Entry>- Parameters:
buffer- A buffer which reader index has been set to the beginning of the {value}.context- The binary reader.- Returns:
- Throws:
IOException
-
writeValue
protected void writeValue(Map.Entry value, Buffer buffer, GraphBinaryWriter context) throws IOException
Description copied from class:SimpleTypeSerializerWrites a non-nullable value into a buffer using the provided allocator.- Specified by:
writeValuein classSimpleTypeSerializer<Map.Entry>- Parameters:
value- A non-nullable value.buffer- The buffer allocator to use.context- The binary writer.- Throws:
IOException
-
transform
public Object transform(Map.Entry value)
- Specified by:
transformin interfaceTransformSerializer<Map.Entry>
-
-