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(ByteBuf buffer,
GraphBinaryReader context)
Reads a non-nullable value according to the type format.
|
protected void |
writeValue(T value,
ByteBuf 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(ByteBuf 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 writer.protected void writeValue(T value, ByteBuf 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–2019 Apache Software Foundation. All rights reserved.