org.mapdb / StoreTrivial

StoreTrivial

open class StoreTrivial : Store

Store which serializes its content into primitive Map<Long,byte[]>. It optionally persist its content into file, in this case it supports rollback and durability.



Constructors

<init> StoreTrivial(isThreadSafe: Boolean = true)

Store which serializes its content into primitive Map<Long,byte[]>. It optionally persist its content into file, in this case it supports rollback and durability.

Properties

isClosed open val isClosed: Boolean
isReadOnly open val isReadOnly: Boolean
isThreadSafe open val isThreadSafe: Boolean

returns true if this is configured to be thread safe

lock val lock: ReadWriteLock?

Functions

clear fun clear(): Unit
close open fun close(): Unit
commit open fun commit(): Unit
compact open fun compact(): Unit
compareAndSwap open fun <R> compareAndSwap(recid: Long, expectedOldRecord: R?, newRecord: R?, serializer: Serializer<R>): Boolean
delete open fun <R> delete(recid: Long, serializer: Serializer<R>): Unit
equals open fun equals(other: Any?): Boolean
fileHeaderCheck fun fileHeaderCheck(header: Long): Unit
fileHeaderCompose fun fileHeaderCompose(): Long
fileLoad open fun fileLoad(): Boolean
get open fun <R> get(recid: Long, serializer: Serializer<R>): R?
getAllFiles open fun getAllFiles(): Iterable<String>
getAllRecids open fun getAllRecids(): LongIterator
loadFrom fun loadFrom(inStream: InputStream): Unit
loadFromInternal fun loadFromInternal(inStream: InputStream): Unit
preallocate open fun preallocate(): Long
put open fun <R> put(record: R?, serializer: Serializer<R>): Long
saveTo fun saveTo(outStream: OutputStream): Unit
update open fun <R> update(recid: Long, record: R?, serializer: Serializer<R>): Unit
verify open fun verify(): Unit

Inheritors

StoreTrivialTx class StoreTrivialTx : StoreTrivial, StoreTx