All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mapdb.serializer.SerializerElsa.kt Maven / Gradle / Ivy

Go to download

MapDB provides concurrent Maps, Sets and Queues backed by disk storage or off-heap memory. It is a fast, scalable and easy to use embedded Java database.

There is a newer version: 3.1.0
Show newest version
package org.mapdb.serializer

import org.mapdb.DataInput2
import org.mapdb.DataOutput2
import org.mapdb.elsa.ElsaSerializerPojo

/**
 * Uses Elsa serialization: http://www.github.com/jankotek/elsa
 */
class SerializerElsa :GroupSerializerObjectArray(){

    protected val ser = ElsaSerializerPojo()

    override fun deserialize(input: DataInput2, available: Int): Any? {
        return ser.deserialize(input)
    }

    override fun serialize(out: DataOutput2, value: Any) {
        ser.serialize(out, value)
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy