Class UUIDSerializer
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.structure.io.binary.types.SimpleTypeSerializer<UUID>
-
- org.apache.tinkerpop.gremlin.structure.io.binary.types.UUIDSerializer
-
- All Implemented Interfaces:
TypeSerializer<UUID>
public class UUIDSerializer extends SimpleTypeSerializer<UUID>
-
-
Constructor Summary
Constructors Constructor Description UUIDSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected UUID
readValue(Buffer buffer, GraphBinaryReader context)
Reads a non-nullable value according to the type format.protected void
writeValue(UUID 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 UUID readValue(Buffer buffer, GraphBinaryReader context)
Description copied from class:SimpleTypeSerializer
Reads a non-nullable value according to the type format.- Specified by:
readValue
in classSimpleTypeSerializer<UUID>
- Parameters:
buffer
- A buffer which reader index has been set to the beginning of the {value}.context
- The binary reader.- Returns:
-
writeValue
protected void writeValue(UUID value, Buffer buffer, GraphBinaryWriter context)
Description copied from class:SimpleTypeSerializer
Writes a non-nullable value into a buffer using the provided allocator.- Specified by:
writeValue
in classSimpleTypeSerializer<UUID>
- Parameters:
value
- A non-nullable value.buffer
- The buffer allocator to use.context
- The binary writer.
-
-