org.mapdb / StoreReadOnlyWrapper

StoreReadOnlyWrapper

class StoreReadOnlyWrapper : Store

Wraps Store and throws UnsupportedOperationException("Read-only") on operations which would modify it



Constructors

<init> StoreReadOnlyWrapper(store: Store)

Wraps Store and throws UnsupportedOperationException("Read-only") on operations which would modify it

Properties

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

returns true if this is configured to be thread safe

store val store: Store

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