org.mapdb / StoreTrivialTx

StoreTrivialTx

class StoreTrivialTx : StoreTrivial, StoreTx


Constructors

<init> StoreTrivialTx(file: File, isThreadSafe: Boolean = true, deleteFilesAfterClose: Boolean = false)

Properties

deleteFilesAfterClose val deleteFilesAfterClose: Boolean
file val file: File
path val path: Path

Inherited 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

close fun close(): Unit
commit fun commit(): Unit
getAllFiles fun getAllFiles(): Iterable<String>
loadFrom fun loadFrom(number: Long): Unit
rollback fun rollback(): Unit

Inherited Functions

clear fun clear(): 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?
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