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)
-
-
-
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>
-
-