use of org.apache.flink.api.common.typeutils.base.LocalDateTimeSerializer in project flink by apache.
the class RawFormatSerDeSchemaTest method serializeLocalDateTime.
private static byte[] serializeLocalDateTime(LocalDateTime localDateTime) {
DataOutputSerializer dos = new DataOutputSerializer(16);
LocalDateTimeSerializer serializer = new LocalDateTimeSerializer();
try {
serializer.serialize(localDateTime, dos);
} catch (IOException e) {
throw new RuntimeException(e);
}
return dos.getCopyOfBuffer();
}
Aggregations