tuweni / org.apache.tuweni.kv / RocksDBKeyValueStore / open

open

@JvmStatic fun <K, V> open(dbPath: Path, keySerializer: Function<K, Bytes>, valueSerializer: Function<V, Bytes>, keyDeserializer: Function<Bytes, K>, valueDeserializer: Function<Bytes, V>): RocksDBKeyValueStore<K, V> (source)

Open a RocksDB-backed key-value store.

Parameters

dbPath - The path to the RocksDB database.

keySerializer - the serializer of key objects to bytes

valueSerializer - the serializer of value objects to bytes

keyDeserializer - the deserializer of keys from bytes

valueDeserializer - the deserializer of values from bytes

Exceptions

IOException - If an I/O error occurs.

Return
A key-value store.

@JvmStatic fun <K, V> open(dbPath: Path, keySerializer: Function<K, Bytes>, valueSerializer: Function<V, Bytes>, keyDeserializer: Function<Bytes, K>, valueDeserializer: Function<Bytes, V>, options: Options): RocksDBKeyValueStore<K, V> (source)

Open a RocksDB-backed key-value store.

Parameters

dbPath - The path to the RocksDB database.

keySerializer - the serializer of key objects to bytes

valueSerializer - the serializer of value objects to bytes

keyDeserializer - the deserializer of keys from bytes

valueDeserializer - the deserializer of values from bytes

options - Options for the RocksDB database.

Exceptions

IOException - If an I/O error occurs.

Return
A key-value store.