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