Class DateSerializer<T extends Date>
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.structure.io.binary.types.SimpleTypeSerializer<T>
-
- org.apache.tinkerpop.gremlin.structure.io.binary.types.DateSerializer<T>
-
- All Implemented Interfaces:
TypeSerializer<T>
public class DateSerializer<T extends Date> extends SimpleTypeSerializer<T>
- Author:
- Stephen Mallette (http://stephen.genoprime.com)
-
-
Field Summary
Fields Modifier and Type Field Description static DateSerializer<Date>DateSerializerstatic DateSerializer<Timestamp>TimestampSerializer
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TreadValue(Buffer buffer, GraphBinaryReader context)Reads a non-nullable value according to the type format.protected voidwriteValue(T value, Buffer buffer, GraphBinaryWriter context)Writes a non-nullable value into a buffer using the provided allocator.-
Methods inherited from class org.apache.tinkerpop.gremlin.structure.io.binary.types.SimpleTypeSerializer
getDataType, read, readValue, write, writeValue
-
-
-
-
Field Detail
-
DateSerializer
public static final DateSerializer<Date> DateSerializer
-
TimestampSerializer
public static final DateSerializer<Timestamp> TimestampSerializer
-
-
Method Detail
-
readValue
protected T readValue(Buffer buffer, GraphBinaryReader context)
Description copied from class:SimpleTypeSerializerReads a non-nullable value according to the type format.- Specified by:
readValuein classSimpleTypeSerializer<T extends Date>- Parameters:
buffer- A buffer which reader index has been set to the beginning of the {value}.context- The binary reader.- Returns:
-
writeValue
protected void writeValue(T value, Buffer buffer, GraphBinaryWriter context)
Description copied from class:SimpleTypeSerializerWrites a non-nullable value into a buffer using the provided allocator.- Specified by:
writeValuein classSimpleTypeSerializer<T extends Date>- Parameters:
value- A non-nullable value.buffer- The buffer allocator to use.context- The binary writer.
-
-