K
- key type for map data storeV
- value type for map data storepublic abstract class AbstractMapDataStore<K,V> extends Object implements MapDataStore<K,V>
Modifier | Constructor and Description |
---|---|
protected |
AbstractMapDataStore(MapStoreWrapper store,
InternalSerializationService serializationService) |
Modifier and Type | Method and Description |
---|---|
MapStoreWrapper |
getStore() |
boolean |
isPostProcessingMapStore() |
Map |
loadAll(Collection keys)
Loads values for the provided keys if a
MapLoader is
configured for this map. |
void |
removeAll(Collection keys)
Removes keys from map store.
|
protected Data |
toHeapData(Object obj) |
protected Object |
toObject(Object obj) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, addBackup, addTransient, flush, hardFlush, load, loadable, notFinishedOperationsCount, remove, removeBackup, reset, softFlush
protected AbstractMapDataStore(MapStoreWrapper store, InternalSerializationService serializationService)
public Map loadAll(Collection keys)
MapDataStore
MapLoader
is
configured for this map. This method never returns null
.
The returned map will contain deserialised keys and values.loadAll
in interface MapDataStore<K,V>
keys
- the keys for which values are loadedMapLoader.loadAll(Collection)
public void removeAll(Collection keys)
Data
to object conversions of keys.
Directly removes keys from map store as in write-through mode.
It works same for write-behind and write-through stores.removeAll
in interface MapDataStore<K,V>
keys
- to be removedpublic MapStoreWrapper getStore()
public boolean isPostProcessingMapStore()
isPostProcessingMapStore
in interface MapDataStore<K,V>
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.