Package com._1c.g5.v8.bm.store
Interface IBmPersistentIndex<P>
-
public interface IBmPersistentIndex<P>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clear()
Clear persistent indexboolean
containsKey(String key)
Test if persistent index contains specified keyvoid
forEach(BiConsumer<String,P> action)
Performs the given action for each entry in this index until all entries have been processed or the action throws an exception.P
get(String key)
Get value by keyIterable<String>
keys()
Get key set of persistent indexvoid
put(String key, P value)
Add key/value pair into persistent indexvoid
putAll(Map<String,P> map)
Put map of key/value pairs into indexP
remove(String key)
Remove specified key from persistent index
-
-
-
Method Detail
-
clear
void clear()
Clear persistent index
-
containsKey
boolean containsKey(String key)
Test if persistent index contains specified key- Parameters:
key
- key to test- Returns:
- true - if index contains key, false - otherwise
-
remove
P remove(String key)
Remove specified key from persistent index- Parameters:
key
- key to remove- Returns:
- old value, associated with removed key or null
-
forEach
void forEach(BiConsumer<String,P> action)
Performs the given action for each entry in this index until all entries have been processed or the action throws an exception.- Parameters:
action
- The action. May not benull
.
-
put
void put(String key, P value)
Add key/value pair into persistent index- Parameters:
key
- key to addvalue
- value to add
-
putAll
void putAll(Map<String,P> map)
Put map of key/value pairs into index- Parameters:
map
- map to add
-
-