org.mapdb.serializer.SerializerElsa.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mapdb Show documentation
Show all versions of mapdb Show documentation
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.
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)
}
}