org.mapdb / StoreOnHeap

StoreOnHeap

class StoreOnHeap : Store

Store which does not use serialization, but puts everything into on-heap Map.



Constructors

<init> StoreOnHeap(isThreadSafe: Boolean = true)

Store which does not use serialization, but puts everything into on-heap Map.

Properties

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

returns true if this is configured to be thread safe

Functions

close fun close(): Unit
commit fun commit(): Unit
compact fun compact(): Unit
compareAndSwap fun <R> compareAndSwap(recid: Long, expectedOldRecord: R?, newRecord: R?, serializer: Serializer<R>): Boolean
delete fun <R> delete(recid: Long, serializer: Serializer<R>): Unit
fileLoad fun fileLoad(): Boolean
get fun <R> get(recid: Long, serializer: Serializer<R>): R?
getAllFiles fun getAllFiles(): Iterable<String>
getAllRecids fun getAllRecids(): LongIterator
preallocate fun preallocate(): Long
put fun <R> put(record: R?, serializer: Serializer<R>): Long
update fun <R> update(recid: Long, record: R?, serializer: Serializer<R>): Unit
verify fun verify(): Unit