public class MapKeyValueStore extends AbstractKeyValueStore implements KeyValueStore
Constructor and Description |
---|
MapKeyValueStore(Map<String,Set<String>> map,
SetFactory setFactory) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
close() |
boolean |
contains(String key) |
boolean |
contains(String key,
String value) |
void |
delete(String key) |
void |
delete(String key,
String value) |
Iterator<String> |
getAll(String key) |
Map<String,Set<String>> |
getMap() |
String |
getOne(String key) |
SetFactory |
getSetFactory() |
void |
init() |
void |
set(String key,
String value) |
beginTransaction, commitTransaction, count, replace, rollbackTransaction, supportsTransactions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
beginTransaction, commitTransaction, count, replace, rollbackTransaction, supportsTransactions
public MapKeyValueStore(Map<String,Set<String>> map, SetFactory setFactory)
public void init() throws IOException
init
in interface KeyValueStore
IOException
public void close()
close
in interface KeyValueStore
public void set(String key, String value)
set
in interface KeyValueStore
public String getOne(String key)
getOne
in interface KeyValueStore
getOne
in class AbstractKeyValueStore
public Iterator<String> getAll(String key)
getAll
in interface KeyValueStore
public boolean contains(String key)
contains
in interface KeyValueStore
contains
in class AbstractKeyValueStore
public boolean contains(String key, String value)
contains
in interface KeyValueStore
contains
in class AbstractKeyValueStore
public void delete(String key)
delete
in interface KeyValueStore
delete
in class AbstractKeyValueStore
public void delete(String key, String value)
delete
in interface KeyValueStore
public void clear()
clear
in interface KeyValueStore
public SetFactory getSetFactory()
Copyright © 2017. All rights reserved.