@Deprecated public interface ISMRMap<K,V> extends Map<K,V>, ISMRObject
Modifier and Type | Interface and Description |
---|---|
static class |
ISMRMap.UndoNullable
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
default void |
blindPut(K key,
V value)
Deprecated.
This operation behaves like a put operation, but does not
return the previous value, and does not result in a read
of the map.
|
void |
clear()
Deprecated.
|
boolean |
containsKey(Object key)
Deprecated.
|
boolean |
containsValue(Object value)
Deprecated.
|
Set<Map.Entry<K,V>> |
entrySet()
Deprecated.
|
V |
get(Object key)
Deprecated.
|
boolean |
isEmpty()
Deprecated.
|
Set<K> |
keySet()
Deprecated.
|
V |
put(K key,
V value)
Deprecated.
|
void |
putAll(Map<? extends K,? extends V> m)
Deprecated.
|
default Object[] |
putAllConflictFunction(Map<? extends K,? extends V> m)
Deprecated.
Generate the conflict parameters for putAll, given the arguments to the
putAll operation.
|
V |
remove(Object key)
Deprecated.
|
int |
size()
Deprecated.
|
default void |
undoPut(ISMRMap<K,V> map,
V undoRecord,
K key,
V value)
Deprecated.
Undo a put, given the current state of the map, an undo record
and the arguments to the put command to undo.
|
default void |
undoPutAll(ISMRMap<K,V> map,
Map<K,V> undoRecord,
Map<? extends K,? extends V> m)
Deprecated.
Undo a remove, given the current state of the map, an undo record
and the arguments to the remove command to undo.
|
default Map<K,V> |
undoPutAllRecord(ISMRMap<K,V> previousState,
Map<? extends K,? extends V> m)
Deprecated.
Generate an undo record for putAll, given the previous state of the map
and the parameters to the putAll call.
|
default V |
undoPutRecord(ISMRMap<K,V> previousState,
K key,
V value)
Deprecated.
Generate an undo record for a put, given the previous state of the map
and the parameters to the put call.
|
default void |
undoRemove(ISMRMap<K,V> map,
V undoRecord,
K key)
Deprecated.
Undo a remove, given the current state of the map, an undo record
and the arguments to the remove command to undo.
|
default V |
undoRemoveRecord(ISMRMap<K,V> previousState,
K key)
Deprecated.
Generate an undo record for a remove, given the previous state of the map
and the parameters to the remove call.
|
Collection<V> |
values()
Deprecated.
|
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
equals, hashCode, toString
int size()
Conflicts: this operation conflicts with any modification to the map, since the size of the map could be potentially changed.
boolean isEmpty()
Conflicts: this operation conflicts with any modification to the map, since the size of the map could be potentially changed.
boolean containsKey(Object key)
Conflicts: this operation conflicts with any operation on the given key.
containsKey
in interface Map<K,V>
boolean containsValue(Object value)
Conflicts: this operation conflicts with any modification to the map, since the presence of values could be potentially changed.
containsValue
in interface Map<K,V>
V get(Object key)
Conflicts: this operation conflicts with any operation on the given key.
V put(K key, V value)
Conflicts: this operation produces a conflict with any other operation on the given key.
default void blindPut(K key, V value)
Calling this operation produces the same put record as calling "put" directly. However, the runtime will not try to sync the object to obtain an upcall.
Conflicts: this operation produces a conflict with any other operation on the given key.
default V undoPutRecord(ISMRMap<K,V> previousState, K key, V value)
previousState
- The previous state of the mapkey
- The key from the put callvalue
- The value from the put call. This is not
needed to generate an undo record.default void undoPut(ISMRMap<K,V> map, V undoRecord, K key, V value)
map
- The state of the map after the put to undoundoRecord
- The undo record generated by undoPutRecordkey
- The key of the put to undovalue
- The value of the put to undo, which is not
needed.V remove(Object key)
Conflicts: this operation produces a conflict with any other operation on the given key.
default V undoRemoveRecord(ISMRMap<K,V> previousState, K key)
previousState
- The previous state of the mapkey
- The key from the remove calldefault void undoRemove(ISMRMap<K,V> map, V undoRecord, K key)
map
- The state of the map after the put to undoundoRecord
- The undo record generated by undoRemoveRecordvoid putAll(Map<? extends K,? extends V> m)
Conflicts: this operation conflicts on any keys that are in the map given.
default Object[] putAllConflictFunction(Map<? extends K,? extends V> m)
m
- The map for the putAll operation.default Map<K,V> undoPutAllRecord(ISMRMap<K,V> previousState, Map<? extends K,? extends V> m)
previousState
- The previous state of the mapm
- The map from the putAll calldefault void undoPutAll(ISMRMap<K,V> map, Map<K,V> undoRecord, Map<? extends K,? extends V> m)
map
- The state of the map after the put to undoundoRecord
- The undo record generated by undoRemoveRecordvoid clear()
Conflicts: this operation conflicts with the entire map, since it drops all mappings which are present.
Set<K> keySet()
This function currently does not return a view like the java.util implementation, and changes to the keySet will *not* be reflected in the map.
Conflicts: This operation currently conflicts with any modification to the map.
Collection<V> values()
This function currently does not return a view like the java.util implementation, and changes to the values will *not* be reflected in the map.
Conflicts: This operation currently conflicts with any modification to the map.
Copyright © 2019 CorfuDB. All rights reserved.