public class InMemoryStringKeyValueStore extends Object implements StringKeyValueStore
| Constructor and Description |
|---|
InMemoryStringKeyValueStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isClosed() |
boolean |
isOpen() |
String |
load(String key) |
KeyValueIterable<String,String> |
loadAll()
Load All Values.
|
Map<String,String> |
loadAllByKeys(Collection<String> key) |
Collection<String> |
loadAllKeys()
Load All keys.
|
void |
put(String key,
String value)
Put a key
|
void |
putAll(Map<String,String> values)
Put all values.
|
void |
remove(String key)
Remove a single key.
|
void |
removeAll(Iterable<String> keys)
Remove all values
|
KeyValueIterable<String,String> |
search(String startKey)
Search.
|
public void put(String key, String value)
KeyValueStoreput in interface KeyValueStore<String,String>key - keyvalue - valuepublic void putAll(Map<String,String> values)
KeyValueStoreputAll in interface KeyValueStore<String,String>public void removeAll(Iterable<String> keys)
KeyValueStoreremoveAll in interface KeyValueStore<String,String>public void remove(String key)
KeyValueStoreremove in interface KeyValueStore<String,String>public KeyValueIterable<String,String> search(String startKey)
KeyValueStoresearch in interface KeyValueStore<String,String>public KeyValueIterable<String,String> loadAll()
KeyValueStoreloadAll in interface KeyValueStore<String,String>public Collection<String> loadAllKeys()
KeyValueStoreloadAllKeys in interface KeyValueStore<String,String>public Map<String,String> loadAllByKeys(Collection<String> key)
loadAllByKeys in interface KeyValueStore<String,String>public void close()
close in interface Closeableclose in interface AutoCloseableclose in interface KeyValueStore<String,String>public boolean isOpen()
isOpen in interface KeyValueStore<String,String>public boolean isClosed()
isClosed in interface KeyValueStore<String,String>Copyright © 2014. All Rights Reserved.