Class PSerializer<T extends P>
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.structure.io.binary.types.SimpleTypeSerializer<T>
-
- org.apache.tinkerpop.gremlin.structure.io.binary.types.PSerializer<T>
-
- All Implemented Interfaces:
TypeSerializer<T>
public class PSerializer<T extends P> extends SimpleTypeSerializer<T>
- Author:
- Stephen Mallette (http://stephen.genoprime.com)
-
-
Constructor Summary
Constructors Constructor Description PSerializer(DataType typeOfP, Class<T> classOfP)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected T
readValue(Buffer buffer, GraphBinaryReader context)
Reads a non-nullable value according to the type format.protected void
writeValue(T 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
-
-
-
-
Method Detail
-
readValue
protected T readValue(Buffer buffer, GraphBinaryReader context) throws IOException
Description copied from class:SimpleTypeSerializer
Reads a non-nullable value according to the type format.- Specified by:
readValue
in classSimpleTypeSerializer<T extends P>
- 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(T value, Buffer buffer, GraphBinaryWriter context) throws IOException
Description copied from class:SimpleTypeSerializer
Writes a non-nullable value into a buffer using the provided allocator.- Specified by:
writeValue
in classSimpleTypeSerializer<T extends P>
- Parameters:
value
- A non-nullable value.buffer
- The buffer allocator to use.context
- The binary writer.- Throws:
IOException
-
-