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