public class HotRestartStorageImpl<R extends com.hazelcast.map.impl.record.Record> extends Object implements com.hazelcast.map.impl.recordstore.Storage<com.hazelcast.nio.serialization.Data,R>, HotRestartStorage<R>
InMemoryFormat.NATIVE
For InMemoryFormat.NATIVE please see HotRestartHDStorageImpl.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
fsync |
protected com.hazelcast.spi.hotrestart.HotRestartStore |
hotRestartStore |
protected EnterpriseMapServiceContext |
mapServiceContext |
protected long |
prefix |
protected com.hazelcast.map.impl.recordstore.Storage<com.hazelcast.nio.serialization.Data,R> |
storage |
| Modifier and Type | Method and Description |
|---|---|
void |
clear(boolean isDuringShutdown) |
boolean |
containsKey(com.hazelcast.nio.serialization.Data key) |
com.hazelcast.spi.hotrestart.HotRestartKey |
createHotRestartKey(R record) |
com.hazelcast.map.impl.recordstore.Storage |
createStorage(com.hazelcast.map.impl.record.RecordFactory recordFactory,
com.hazelcast.config.InMemoryFormat inMemoryFormat) |
void |
destroy(boolean isDuringShutdown) |
void |
disposeDeferredBlocks() |
com.hazelcast.map.impl.record.Record |
extractRecordFromLazy(com.hazelcast.core.EntryView entryView) |
com.hazelcast.map.impl.iterator.MapEntriesWithCursor |
fetchEntries(int tableIndex,
int size,
com.hazelcast.spi.serialization.SerializationService serializationService) |
com.hazelcast.map.impl.iterator.MapKeysWithCursor |
fetchKeys(int tableIndex,
int size) |
R |
get(com.hazelcast.nio.serialization.Data key) |
com.hazelcast.map.impl.EntryCostEstimator |
getEntryCostEstimator() |
com.hazelcast.spi.hotrestart.HotRestartStore |
getHotRestartStore(int partitionId) |
R |
getIfSameKey(com.hazelcast.nio.serialization.Data key) |
Iterable<com.hazelcast.core.EntryView> |
getRandomSamples(int sampleCount) |
boolean |
isEmpty() |
Iterator<R> |
mutationTolerantIterator() |
void |
put(com.hazelcast.nio.serialization.Data key,
R record) |
protected void |
putToHotRestart(R record) |
void |
putTransient(com.hazelcast.nio.serialization.Data key,
R record) |
void |
removeRecord(R record) |
void |
removeTransient(R record) |
void |
setEntryCostEstimator(com.hazelcast.map.impl.EntryCostEstimator entryCostEstimator) |
int |
size() |
void |
updateRecordValue(com.hazelcast.nio.serialization.Data key,
R record,
Object value) |
void |
updateTransient(com.hazelcast.nio.serialization.Data key,
R record,
Object value) |
Collection<R> |
values() |
protected final EnterpriseMapServiceContext mapServiceContext
protected final com.hazelcast.spi.hotrestart.HotRestartStore hotRestartStore
protected final com.hazelcast.map.impl.recordstore.Storage<com.hazelcast.nio.serialization.Data,R extends com.hazelcast.map.impl.record.Record> storage
protected final boolean fsync
protected final long prefix
public com.hazelcast.spi.hotrestart.HotRestartStore getHotRestartStore(int partitionId)
public com.hazelcast.map.impl.recordstore.Storage createStorage(com.hazelcast.map.impl.record.RecordFactory recordFactory,
com.hazelcast.config.InMemoryFormat inMemoryFormat)
public final void putTransient(com.hazelcast.nio.serialization.Data key,
R record)
putTransient in interface HotRestartStorage<R extends com.hazelcast.map.impl.record.Record>public final void updateTransient(com.hazelcast.nio.serialization.Data key,
R record,
Object value)
updateTransient in interface HotRestartStorage<R extends com.hazelcast.map.impl.record.Record>public final void removeTransient(R record)
removeTransient in interface HotRestartStorage<R extends com.hazelcast.map.impl.record.Record>public void put(com.hazelcast.nio.serialization.Data key,
R record)
put in interface com.hazelcast.map.impl.recordstore.Storage<com.hazelcast.nio.serialization.Data,R extends com.hazelcast.map.impl.record.Record>public void updateRecordValue(com.hazelcast.nio.serialization.Data key,
R record,
Object value)
updateRecordValue in interface com.hazelcast.map.impl.recordstore.Storage<com.hazelcast.nio.serialization.Data,R extends com.hazelcast.map.impl.record.Record>public void removeRecord(R record)
removeRecord in interface com.hazelcast.map.impl.recordstore.Storage<com.hazelcast.nio.serialization.Data,R extends com.hazelcast.map.impl.record.Record>public void clear(boolean isDuringShutdown)
clear in interface com.hazelcast.map.impl.recordstore.Storage<com.hazelcast.nio.serialization.Data,R extends com.hazelcast.map.impl.record.Record>public void destroy(boolean isDuringShutdown)
destroy in interface com.hazelcast.map.impl.recordstore.Storage<com.hazelcast.nio.serialization.Data,R extends com.hazelcast.map.impl.record.Record>public final R get(com.hazelcast.nio.serialization.Data key)
get in interface com.hazelcast.map.impl.recordstore.Storage<com.hazelcast.nio.serialization.Data,R extends com.hazelcast.map.impl.record.Record>public R getIfSameKey(com.hazelcast.nio.serialization.Data key)
getIfSameKey in interface com.hazelcast.map.impl.recordstore.Storage<com.hazelcast.nio.serialization.Data,R extends com.hazelcast.map.impl.record.Record>public final boolean containsKey(com.hazelcast.nio.serialization.Data key)
containsKey in interface com.hazelcast.map.impl.recordstore.Storage<com.hazelcast.nio.serialization.Data,R extends com.hazelcast.map.impl.record.Record>public Collection<R> values()
values in interface com.hazelcast.map.impl.recordstore.Storage<com.hazelcast.nio.serialization.Data,R extends com.hazelcast.map.impl.record.Record>public final Iterator<R> mutationTolerantIterator()
mutationTolerantIterator in interface com.hazelcast.map.impl.recordstore.Storage<com.hazelcast.nio.serialization.Data,R extends com.hazelcast.map.impl.record.Record>public final int size()
size in interface com.hazelcast.map.impl.recordstore.Storage<com.hazelcast.nio.serialization.Data,R extends com.hazelcast.map.impl.record.Record>public final boolean isEmpty()
isEmpty in interface com.hazelcast.map.impl.recordstore.Storage<com.hazelcast.nio.serialization.Data,R extends com.hazelcast.map.impl.record.Record>public final com.hazelcast.map.impl.EntryCostEstimator getEntryCostEstimator()
getEntryCostEstimator in interface com.hazelcast.map.impl.recordstore.Storage<com.hazelcast.nio.serialization.Data,R extends com.hazelcast.map.impl.record.Record>public final void setEntryCostEstimator(com.hazelcast.map.impl.EntryCostEstimator entryCostEstimator)
setEntryCostEstimator in interface com.hazelcast.map.impl.recordstore.Storage<com.hazelcast.nio.serialization.Data,R extends com.hazelcast.map.impl.record.Record>public void disposeDeferredBlocks()
disposeDeferredBlocks in interface com.hazelcast.map.impl.recordstore.Storage<com.hazelcast.nio.serialization.Data,R extends com.hazelcast.map.impl.record.Record>public Iterable<com.hazelcast.core.EntryView> getRandomSamples(int sampleCount)
getRandomSamples in interface com.hazelcast.map.impl.recordstore.Storage<com.hazelcast.nio.serialization.Data,R extends com.hazelcast.map.impl.record.Record>public com.hazelcast.map.impl.iterator.MapKeysWithCursor fetchKeys(int tableIndex,
int size)
fetchKeys in interface com.hazelcast.map.impl.recordstore.Storage<com.hazelcast.nio.serialization.Data,R extends com.hazelcast.map.impl.record.Record>public com.hazelcast.map.impl.iterator.MapEntriesWithCursor fetchEntries(int tableIndex,
int size,
com.hazelcast.spi.serialization.SerializationService serializationService)
fetchEntries in interface com.hazelcast.map.impl.recordstore.Storage<com.hazelcast.nio.serialization.Data,R extends com.hazelcast.map.impl.record.Record>public com.hazelcast.map.impl.record.Record extractRecordFromLazy(com.hazelcast.core.EntryView entryView)
extractRecordFromLazy in interface com.hazelcast.map.impl.recordstore.Storage<com.hazelcast.nio.serialization.Data,R extends com.hazelcast.map.impl.record.Record>public com.hazelcast.spi.hotrestart.HotRestartKey createHotRestartKey(R record)
protected final void putToHotRestart(R record)
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.