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