| Modifier and Type | Method and Description |
|---|---|
void |
clear(boolean isDuringShutdown) |
boolean |
containsKey(Data key) |
void |
destroy(boolean isDuringShutdown) |
void |
disposeDeferredBlocks() |
MapEntriesWithCursor |
fetchEntries(int tableIndex,
int size,
SerializationService serializationService) |
MapKeysWithCursor |
fetchKeys(int tableIndex,
int size) |
R |
get(Data key) |
EntryCostEstimator |
getEntryCostEstimator() |
R |
getIfSameKey(Data key)
Gives the same result as
Storage.get(Object), but with the additional constraint
that the supplied key must not just be equal to, but be exactly the same key blob (at the
same memory address) as the one stored. |
Iterable<LazyEntryViewFromRecord> |
getRandomSamples(int sampleCount)
Used for sampling based eviction, returns sampled entries.
|
boolean |
isEmpty() |
void |
put(Data key,
R record) |
void |
removeRecord(R record) |
void |
setEntryCostEstimator(EntryCostEstimator entryCostEstimator) |
int |
size() |
protected void |
updateCostEstimate(long entrySize) |
void |
updateRecordValue(Data key,
R record,
Object value) |
Collection<R> |
values() |
public void clear(boolean isDuringShutdown)
public Collection<R> values()
public void updateRecordValue(Data key, R record, Object value)
updateRecordValue in interface Storage<Data,R extends Record>public R getIfSameKey(Data key)
StorageStorage.get(Object), but with the additional constraint
that the supplied key must not just be equal to, but be exactly the same key blob (at the
same memory address) as the one stored. The implementation of this method is only needed
for the HD memory-based implementations.getIfSameKey in interface Storage<Data,R extends Record>public void destroy(boolean isDuringShutdown)
public EntryCostEstimator getEntryCostEstimator()
getEntryCostEstimator in interface Storage<Data,R extends Record>public boolean containsKey(Data key)
containsKey in interface Storage<Data,R extends Record>public void removeRecord(R record)
removeRecord in interface Storage<Data,R extends Record>protected void updateCostEstimate(long entrySize)
public void setEntryCostEstimator(EntryCostEstimator entryCostEstimator)
setEntryCostEstimator in interface Storage<Data,R extends Record>public void disposeDeferredBlocks()
disposeDeferredBlocks in interface Storage<Data,R extends Record>public Iterable<LazyEntryViewFromRecord> getRandomSamples(int sampleCount)
StoragegetRandomSamples in interface Storage<Data,R extends Record>sampleCount - sample count.public MapKeysWithCursor fetchKeys(int tableIndex, int size)
public MapEntriesWithCursor fetchEntries(int tableIndex, int size, SerializationService serializationService)
fetchEntries in interface Storage<Data,R extends Record>Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.