Class 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 for DiskPersistence and OffHeapPersistence that uses Gson and does not require any of the KryoSerializer functionality.
    Author:
    Niklas Schlimm
    • Constructor Detail

      • SimpleGsonPojoSerializer

        public SimpleGsonPojoSerializer​(BarbelHistoContext context)
    • Method Detail

      • serialize

        public byte[] serialize​(Bitemporal object)
        Specified by:
        serialize in interface com.googlecode.cqengine.persistence.support.serialization.PojoSerializer<Bitemporal>
      • deserialize

        public Bitemporal deserialize​(byte[] bytes)
        Specified by:
        deserialize in interface com.googlecode.cqengine.persistence.support.serialization.PojoSerializer<Bitemporal>