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 |
---|---|
ByteBuf |
writeValue(T value,
ByteBufAllocator allocator,
GraphBinaryWriter context)
Writes a non-nullable value into a buffer using the provided allocator.
|
getDataType, read, readValue, write, writeValue
public static final DateSerializer<Date> DateSerializer
public static final DateSerializer<Timestamp> TimestampSerializer
public ByteBuf writeValue(T value, ByteBufAllocator allocator, GraphBinaryWriter context)
SimpleTypeSerializer
writeValue
in class SimpleTypeSerializer<T extends Date>
value
- A non-nullable value.allocator
- The buffer allocator to use.context
- The binary writer.Copyright © 2013–2019 Apache Software Foundation. All rights reserved.