public interface KeyValueStore
An abstraction of a key/value persistent store of a Patricia tree.
-
Method Summary
-
Method Details
-
put
void put(byte[] key, byte[] value) Persists a key/value association in this store. It replaces it if it was already present.- Parameters:
key- the keyvalue- the value
-
remove
Deletes the association for the given key, that must exist in store.- Parameters:
key- the key- Throws:
UnknownKeyException- ifkeyis not present in this key/value store
-
get
Gets the association of a key in this store.- Parameters:
key- the key- Returns:
- the value associated with the key
- Throws:
UnknownKeyException- ifkeyis not present in this key/value store
-