org.mapdb / DB / TreeMapMaker

TreeMapMaker

class TreeMapMaker<K, V> : Maker<BTreeMap<K, V>>


Constructors

<init> TreeMapMaker(db: DB, name: String, hasValues: Boolean = true)

Properties

db val db: DB
hasValues val hasValues: Boolean
name val name: String
type val type: String

Functions

counterEnable fun counterEnable(): TreeMapMaker<K, V>
create fun create(): BTreeMap<K, V>

Creates new collection if it does not exist, or throw {@link DBException.WrongConfiguration} if collection already exists.

create2 fun create2(catalog: SortedMap<String, String>): BTreeMap<K, V>
createFrom fun createFrom(iterator: Iterator<<ERROR CLASS><K, V>>): BTreeMap<K, V>
createFromSink fun createFromSink(): TreeMapSink<K, V>
createOrOpen fun createOrOpen(): BTreeMap<K, V>

Create new collection or open existing.

keySerializer fun <A> keySerializer(keySerializer: GroupSerializer<A>): TreeMapMaker<A, V>
maxNodeSize fun maxNodeSize(size: Int): TreeMapMaker<K, V>
modificationListener fun modificationListener(listener: MapModificationListener<K, V>): TreeMapMaker<K, V>
open fun open(): BTreeMap<K, V>

Open existing collection, or throw {@link DBException.WrongConfiguration} if collection already exists.

open2 fun open2(catalog: SortedMap<String, String>): BTreeMap<K, V>
valueSerializer fun <A> valueSerializer(valueSerializer: GroupSerializer<A>): TreeMapMaker<K, A>
valuesOutsideNodesEnable fun valuesOutsideNodesEnable(): TreeMapMaker<K, V>

Inherited Functions

make open fun make(): E

Create new collection or open existing.

make2 fun make2(create: Boolean?): E
makeOrGet open fun makeOrGet(): E
verify open fun verify(): Unit