Package com.gengoai.kv
Class InMemoryKeyValueStore<K,V>
- java.lang.Object
-
- com.gengoai.kv.AbstractKeyValueStore<K,V>
-
- com.gengoai.kv.InMemoryKeyValueStore<K,V>
-
- All Implemented Interfaces:
KeyValueStore<K,V>
,Serializable
,AutoCloseable
,Map<K,V>
public class InMemoryKeyValueStore<K,V> extends AbstractKeyValueStore<K,V>
- Author:
- David B. Bracewell
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InMemoryKeyValueStore(String namespace, boolean readOnly)
Instantiates a new Abstract navigable key value store.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
commit()
Commits changes to the key-value store to be persistedprotected Map<K,V>
delegate()
Delegate navigable map.-
Methods inherited from class com.gengoai.kv.AbstractKeyValueStore
clear, containsKey, containsValue, entrySet, get, getNameSpace, isEmpty, isReadOnly, keySet, put, putAll, remove, size, sizeAsLong, values
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Constructor Detail
-
InMemoryKeyValueStore
public InMemoryKeyValueStore(String namespace, boolean readOnly)
Instantiates a new Abstract navigable key value store.- Parameters:
namespace
- the namespacereadOnly
- the read only
-
-
Method Detail
-
commit
public void commit()
Description copied from interface:KeyValueStore
Commits changes to the key-value store to be persisted
-
delegate
protected Map<K,V> delegate()
Description copied from class:AbstractKeyValueStore
Delegate navigable map.- Specified by:
delegate
in classAbstractKeyValueStore<K,V>
- Returns:
- the navigable map
-
-