Package com._1c.g5.v8.bm.store
Interface IBmPersistentIndex<P>
- All Known Implementing Classes:
DurableStringIndex,StringIndex
public interface IBmPersistentIndex<P>
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear persistent indexbooleancontainsKey(String key) Test if persistent index contains specified keyvoidforEach(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.Get value by keykeys()Get key set of persistent indexvoidAdd key/value pair into persistent indexvoidPut map of key/value pairs into indexRemove specified key from persistent index
-
Method Details
-
keys
Get key set of persistent index- Returns:
- key set
-
clear
void clear()Clear persistent index -
containsKey
Test if persistent index contains specified key- Parameters:
key- key to test- Returns:
- true - if index contains key, false - otherwise
-
remove
Remove specified key from persistent index- Parameters:
key- key to remove- Returns:
- old value, associated with removed key or null
-
forEach
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
Add key/value pair into persistent index- Parameters:
key- key to addvalue- value to add
-
putAll
Put map of key/value pairs into index- Parameters:
map- map to add
-
get
Get value by key- Parameters:
key- key- Returns:
- value, associated with key in index or null (if index doesn't contain specified key)
-