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