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