| Package | Description |
|---|---|
| com.hazelcast.spi.hotrestart |
SPI for the Hot Restart store.
|
| com.hazelcast.spi.hotrestart.impl |
Implementation code for the Hot Restart store SPI.
|
| com.hazelcast.spi.hotrestart.impl.gc.chunk | |
| com.hazelcast.spi.hotrestart.impl.gc.record | |
| com.hazelcast.spi.hotrestart.impl.gc.tracker |
| Modifier and Type | Interface and Description |
|---|---|
interface |
KeyHandleOffHeap
KeyHandle for an off-heap record. |
| Modifier and Type | Method and Description |
|---|---|
KeyHandle |
HotRestartKey.handle() |
KeyHandle |
RamStore.toKeyHandle(byte[] key)
Called during Hot Restart.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RamStore.accept(KeyHandle kh,
byte[] value)
Called during Hot Restart.
|
boolean |
RamStore.copyEntry(KeyHandle kh,
int expectedSize,
RecordDataSink bufs)
Copies the key/value bytes into the corresponding byte buffers provided
by the supplied
RecordDataSink. |
| Modifier and Type | Class and Description |
|---|---|
class |
KeyOnHeap
Implementation usable both as
HotRestartKey and KeyHandle for an
on-heap hot restart store. |
class |
SimpleHandleOffHeap
Simple implementation of
KeyHandleOffHeap. |
| Modifier and Type | Field and Description |
|---|---|
KeyHandle |
RestartItem.keyHandle |
| Modifier and Type | Method and Description |
|---|---|
KeyHandle |
SetOfKeyHandle.KhCursor.asKeyHandle()
Returns the key handle at the current cursor position.
|
KeyHandle |
SortedBySeqRecordCursor.asKeyHandle()
Returns the key handle associated with the record at the current cursor position.
|
KeyHandle |
KeyOnHeap.handle() |
| Modifier and Type | Method and Description |
|---|---|
void |
SetOfKeyHandle.add(KeyHandle kh)
Adds a key handle to the set.
|
void |
SetOfKeyHandle.remove(KeyHandle kh)
Removes a key handle from the set.
|
| Modifier and Type | Method and Description |
|---|---|
KeyHandle |
StableTombChunk.getLiveKeyHandle(long filePos) |
| Modifier and Type | Method and Description |
|---|---|
void |
SurvivorValChunk.add(Record r,
KeyHandle kh,
RecordDataHolder holder)
Adds a record both to the survivor chunk file and to the chunk's record map.
|
void |
GrowingChunk.addStep2(long recordSeq,
long keyPrefix,
KeyHandle kh,
int size)
Adds the record to this chunk's record map.
|
void |
GrowingChunk.addStep2(long recordSeq,
long keyPrefix,
KeyHandle kh,
int filePos,
int size)
Called only by
Rebuilder, which encounters records out of file order. |
void |
WriteThroughTombChunk.insertOrUpdate(long recordSeq,
long keyPrefix,
KeyHandle kh,
int filePos,
int size) |
void |
ActiveValChunk.insertOrUpdate(long recordSeq,
long keyPrefix,
KeyHandle kh,
int ignored,
int size) |
abstract void |
GrowingChunk.insertOrUpdate(long recordSeq,
long keyPrefix,
KeyHandle kh,
int filePos,
int size)
Inserts a new entry in the chunk's record map or updates the existing one under the same
key handle.
|
void |
SurvivorValChunk.insertOrUpdate(long recordSeq,
long keyPrefix,
KeyHandle kh,
int ignored,
int size) |
protected void |
GrowingChunk.insertOrUpdateTombstone(long recordSeq,
long keyPrefix,
KeyHandle kh,
int filePos,
int size)
Implements
insertOrUpdate for a tombstone record. |
protected void |
GrowingChunk.insertOrUpdateValue(long recordSeq,
long keyPrefix,
KeyHandle kh,
int size)
Implements
insertOrUpdate for a value record. |
void |
Chunk.retire(KeyHandle kh,
Record r) |
void |
StableTombChunk.retire(KeyHandle kh,
Record r,
boolean mayIncrementGarbageCount) |
void |
Chunk.retire(KeyHandle kh,
Record r,
boolean mayIncrementGarbageCount)
Retires a record in this chunk (makes it dead).
|
| Modifier and Type | Method and Description |
|---|---|
KeyHandle |
SortedBySeqRecordCursorOnHeap.asKeyHandle() |
KeyHandle |
RecordMap.Cursor.toKeyHandle() |
| Modifier and Type | Method and Description |
|---|---|
void |
SetOfKeyHandleOffHeap.add(KeyHandle kh) |
void |
SetOfKeyHandleOnHeap.add(KeyHandle kh) |
Record |
RecordMapOnHeap.get(KeyHandle kh) |
Record |
RecordMap.get(KeyHandle kh)
Returns the record mapped by the supplied
KeyHandle, if any; otherwise
returns null. |
RecordOffHeap |
RecordMapOffHeap.get(KeyHandle kh) |
abstract long |
Record.keyPrefix(KeyHandle kh) |
long |
RecordOffHeap.keyPrefix(KeyHandle ignored) |
long |
RecordOnHeap.keyPrefix(KeyHandle kh) |
Record |
RecordMapOnHeap.putIfAbsent(long ignored,
KeyHandle kh,
long seq,
int size,
boolean isTombstone,
int additionalInt) |
Record |
RecordMap.putIfAbsent(long prefix,
KeyHandle kh,
long seq,
int size,
boolean isTombstone,
int additionalInt)
If there is no current mapping for
kh, establishes a mapping from
kh to a record defined by (seq, size, isTombstone, additionalInt)
and returns null. |
Record |
RecordMapOffHeap.putIfAbsent(long prefix,
KeyHandle kh,
long seq,
int size,
boolean isTombstone,
int additionalInt) |
void |
SetOfKeyHandleOffHeap.remove(KeyHandle kh) |
void |
SetOfKeyHandleOnHeap.remove(KeyHandle kh) |
| Modifier and Type | Method and Description |
|---|---|
KeyHandle |
TrackerMap.Cursor.asKeyHandle()
Returns the key handle associated with the tracker at the current cursor position.
|
KeyHandle |
TrackerMap.Cursor.toKeyHandle() |
| Modifier and Type | Method and Description |
|---|---|
Tracker |
TrackerMapOffHeap.get(KeyHandle kh) |
Tracker |
TrackerMap.get(KeyHandle kh)
Returns the tracker mapped by the supplied
KeyHandle, if any; otherwise
returns null. |
Tracker |
TrackerMapOnHeap.get(KeyHandle kh) |
Tracker |
TrackerMapOffHeap.putIfAbsent(KeyHandle kh,
long chunkSeq,
boolean isTombstone) |
Tracker |
TrackerMap.putIfAbsent(KeyHandle kh,
long chunkSeq,
boolean isTombstone)
If there is no current mapping for
kh, establishes a mapping from
kh to a tracker defined by (chunkSeq, isTombstone)
and returns null. |
Tracker |
TrackerMapOnHeap.putIfAbsent(KeyHandle kh,
long chunkSeq,
boolean isTombstone) |
void |
TrackerMapBase.removeIfDead(KeyHandle kh,
Tracker tr) |
void |
TrackerMap.removeIfDead(KeyHandle kh,
Tracker tr)
Removes the entry for
tr if tr represents a dead record. |
void |
TrackerMapBase.removeLiveTombstone(KeyHandle kh) |
void |
TrackerMap.removeLiveTombstone(KeyHandle kh)
Removes the entry for
kh assuming that it maps to
a tracker representing a live tombstone. |
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.