public class TraversalExplanationSerializer extends SimpleTypeSerializer<TraversalExplanation> implements TransformSerializer<TraversalExplanation>
Constructor and Description |
---|
TraversalExplanationSerializer() |
Modifier and Type | Method and Description |
---|---|
protected TraversalExplanation |
readValue(Buffer buffer,
GraphBinaryReader context)
Reads a non-nullable value according to the type format.
|
Object |
transform(TraversalExplanation value)
Creates a Map containing "original", "intermediate" and "final" keys.
|
protected void |
writeValue(TraversalExplanation value,
Buffer 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 TraversalExplanation readValue(Buffer buffer, GraphBinaryReader context) throws IOException
SimpleTypeSerializer
readValue
in class SimpleTypeSerializer<TraversalExplanation>
buffer
- A buffer which reader index has been set to the beginning of the {value}.context
- The binary reader.IOException
protected void writeValue(TraversalExplanation value, Buffer buffer, GraphBinaryWriter context) throws IOException
SimpleTypeSerializer
writeValue
in class SimpleTypeSerializer<TraversalExplanation>
value
- A non-nullable value.buffer
- The buffer allocator to use.context
- The binary writer.IOException
public Object transform(TraversalExplanation value)
transform
in interface TransformSerializer<TraversalExplanation>
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.