public interface DatabaseState<K,V>
| Modifier and Type | Method and Description |
|---|---|
boolean |
batchUpdate(List<org.onosproject.store.service.UpdateOperation<K,V>> updates) |
void |
clear(String tableName) |
boolean |
containsKey(String tableName,
K key) |
boolean |
containsValue(String tableName,
V value) |
Set<Map.Entry<K,org.onosproject.store.service.Versioned<V>>> |
entrySet(String tableName) |
org.onosproject.store.service.Versioned<V> |
get(String tableName,
K key) |
void |
init(net.kuujo.copycat.state.StateContext<DatabaseState<K,V>> context)
Initializes the database state.
|
boolean |
isEmpty(String tableName) |
Set<K> |
keySet(String tableName) |
org.onosproject.store.service.Versioned<V> |
put(String tableName,
K key,
V value) |
org.onosproject.store.service.Versioned<V> |
putIfAbsent(String tableName,
K key,
V value) |
org.onosproject.store.service.Versioned<V> |
remove(String tableName,
K key) |
boolean |
remove(String tableName,
K key,
long version) |
boolean |
remove(String tableName,
K key,
V value) |
boolean |
replace(String tableName,
K key,
long oldVersion,
V newValue) |
boolean |
replace(String tableName,
K key,
V oldValue,
V newValue) |
int |
size(String tableName) |
Collection<org.onosproject.store.service.Versioned<V>> |
values(String tableName) |
void init(net.kuujo.copycat.state.StateContext<DatabaseState<K,V>> context)
context - The map state context.int size(String tableName)
boolean isEmpty(String tableName)
void clear(String tableName)
Collection<org.onosproject.store.service.Versioned<V>> values(String tableName)
org.onosproject.store.service.Versioned<V> putIfAbsent(String tableName, K key, V value)
Copyright © 2015. All rights reserved.