public interface ICorfuMap<K,V> extends Map<K,V>
Modifier and Type | Method and Description |
---|---|
void |
delete(K key)
Delete a key from a map.
|
void |
insert(K key,
V value)
Insert a key-value pair into a map, overwriting any previous mapping.
|
Collection<Map.Entry<K,V>> |
scanAndFilterByEntry(Predicate<? super Map.Entry<K,V>> entryPredicate)
Returns a
Collection filtered by entries (keys and/or values). |
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
void insert(K key, V value)
key
- The key to insertvalue
- The value to insertvoid delete(K key)
key
- The key to deleteCollection<Map.Entry<K,V>> scanAndFilterByEntry(Predicate<? super Map.Entry<K,V>> entryPredicate)
Collection
filtered by entries (keys and/or values).
This method has a memory/CPU advantage over the map iterators as no deep copy
is actually performed.entryPredicate
- java predicate (function to evaluate)Copyright © 2019 CorfuDB. All rights reserved.