public final class SurvivorValChunk extends WriteThroughChunk
ValEvacuator.outACTIVE_FNAME_SUFFIX, FNAME_SUFFIX, garbage, liveRecordCount, records, seq, SURVIVOR_FNAME_SUFFIX, SYSPROP_TOMB_CHUNK_SIZE_LIMIT, SYSPROP_VAL_CHUNK_SIZE_LIMIT, TOMB_BASEDIR, TOMB_SIZE_LIMIT_DEFAULT, VAL_BASEDIR, VAL_SIZE_LIMIT_DEFAULT| Constructor and Description |
|---|
SurvivorValChunk(long seq,
RecordMap records,
ChunkFileOut out,
GcHelper gcHelper) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Record r,
KeyHandle kh,
RecordDataHolder holder)
Adds a record both to the survivor chunk file and to the chunk's record map.
|
protected int |
determineSizeLimit()
Determines the limit on the size of this chunk by reading a system property.
|
void |
insertOrUpdate(long recordSeq,
long keyPrefix,
KeyHandle kh,
int ignored,
int size)
Inserts a new entry in the chunk's record map or updates the existing one under the same
key handle.
|
StableValChunk |
toStableChunk() |
close, flagForFsyncOnClose, fsyncaddStep2, addStep2, full, grow, insertOrUpdateTombstone, insertOrUpdateValue, sizebase, dispose, fnameSuffix, needsDismissing, needsDismissing, retire, retire, tombChunkSizeLimit, toString, valChunkSizeLimitpublic SurvivorValChunk(long seq,
RecordMap records,
ChunkFileOut out,
GcHelper gcHelper)
public void add(Record r, KeyHandle kh, RecordDataHolder holder)
r - the recordkh - record's key handleholder - record's key and value blobspublic void insertOrUpdate(long recordSeq,
long keyPrefix,
KeyHandle kh,
int ignored,
int size)
GrowingChunkinsertOrUpdate in class GrowingChunkprotected int determineSizeLimit()
GrowingChunkdetermineSizeLimit in class GrowingChunkpublic StableValChunk toStableChunk()
toStableChunk in class WriteThroughChunkCopyright © 2021 Hazelcast, Inc.. All Rights Reserved.