public interface KeyValueStore
An abstraction of a store that persists the nodes of a Patricia tree.
-
Method Summary
-
Method Details
-
put
Persists an association of a key to a value in this store. It replaces it if it was already present.- Parameters:
key- the key; this might be missing in this store, in which case nothing happensvalue- the value- Throws:
KeyValueStoreException- if this key/value store is not able to complete the operation
-
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 storeKeyValueStoreException- if this key/value store is not able to complete the operation
-
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 storeKeyValueStoreException- if this key/value store is not able to complete the operation
-