Class SimpleGsonPojoSerializer
- java.lang.Object
-
- org.projectbarbel.histo.functions.SimpleGsonPojoSerializer
-
- All Implemented Interfaces:
com.googlecode.cqengine.persistence.support.serialization.PojoSerializer<Bitemporal>
public class SimpleGsonPojoSerializer extends Object implements com.googlecode.cqengine.persistence.support.serialization.PojoSerializer<Bitemporal>
Serializer forDiskPersistence
andOffHeapPersistence
that uses Gson and does not require any of theKryoSerializer
functionality.- Author:
- Niklas Schlimm
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SimpleGsonPojoSerializer.JsonTypeWrapper
-
Constructor Summary
Constructors Constructor Description SimpleGsonPojoSerializer(BarbelHistoContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Bitemporal
deserialize(byte[] bytes)
byte[]
serialize(Bitemporal object)
-
-
-
Constructor Detail
-
SimpleGsonPojoSerializer
public SimpleGsonPojoSerializer(BarbelHistoContext context)
-
-
Method Detail
-
serialize
public byte[] serialize(Bitemporal object)
- Specified by:
serialize
in interfacecom.googlecode.cqengine.persistence.support.serialization.PojoSerializer<Bitemporal>
-
deserialize
public Bitemporal deserialize(byte[] bytes)
- Specified by:
deserialize
in interfacecom.googlecode.cqengine.persistence.support.serialization.PojoSerializer<Bitemporal>
-
-