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