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