@JvmStatic fun <K, V> open(dbPath: Path, keySerializer: Function<K, Bytes>, valueSerializer: Function<V, Bytes>, keyDeserializer: Function<Bytes, K>, valueDeserializer: Function<Bytes, V>): LevelDBKeyValueStore<K, V>
(source)
Open a LevelDB-backed key-value store.
dbPath
- The path to the levelDB 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
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): LevelDBKeyValueStore<K, V>
(source)
Open a LevelDB-backed key-value store.
dbPath
- The path to the levelDB 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 levelDB database.
IOException
- If an I/O error occurs.
Return
A key-value store.
@JvmStatic fun open(dbPath: Path): LevelDBKeyValueStore<Bytes, Bytes>
(source)
Open a LevelDB-backed key-value store using Bytes keys and values.
dbPath
- The path to the levelDB database.
IOException
- If an I/O error occurs.
Return
A key-value store dealing with bytes.