public class WriteThroughTombChunk extends WriteThroughChunk implements ActiveChunk
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 |
|---|
WriteThroughTombChunk(long seq,
String suffix,
RecordMap records,
ChunkFileOut out,
GcHelper gcHelper) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addStep1(long recordSeq,
long keyPrefix,
byte[] keyBytes,
byte[] ignored)
Writes a record to the chunk file and updates the
size property on this object. |
boolean |
addStep1(TombFileAccessor tfa,
int filePos)
Does the same work as
addStep1(long, long, byte[], byte[]), but using a
TombFileAccessor to get the data. |
String |
base() |
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 filePos,
int size)
Inserts a new entry in the chunk's record map or updates the existing one under the same
key handle.
|
void |
needsDismissing(boolean needsDismissing)
Sets whether the "dismiss prefix garbage" operation is needed for this chunk.
|
StableTombChunk |
toStableChunk()
Converts this active chunk into a stable chunk.
|
close, flagForFsyncOnClose, fsyncaddStep2, addStep2, full, grow, insertOrUpdateTombstone, insertOrUpdateValue, sizedispose, fnameSuffix, needsDismissing, retire, retire, tombChunkSizeLimit, toString, valChunkSizeLimitclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclose, flagForFsyncOnClose, fsync, sizepublic WriteThroughTombChunk(long seq,
String suffix,
RecordMap records,
ChunkFileOut out,
GcHelper gcHelper)
public boolean addStep1(long recordSeq,
long keyPrefix,
byte[] keyBytes,
byte[] ignored)
ActiveChunksize property on this object.
May be called on the mutator thread.addStep1 in interface ActiveChunktrue if the chunk is now full.public boolean addStep1(TombFileAccessor tfa, int filePos)
addStep1(long, long, byte[], byte[]), but using a
TombFileAccessor to get the data.tfa - tombstone file accessor connected to the source tombstone chunkfilePos - position of the tombstone in the source chunkpublic void insertOrUpdate(long recordSeq,
long keyPrefix,
KeyHandle kh,
int filePos,
int size)
GrowingChunkinsertOrUpdate in class GrowingChunkprotected int determineSizeLimit()
GrowingChunkdetermineSizeLimit in class GrowingChunkpublic void needsDismissing(boolean needsDismissing)
ChunkneedsDismissing in class Chunkpublic String base()
public StableTombChunk toStableChunk()
ActiveChunktoStableChunk in interface ActiveChunktoStableChunk in class WriteThroughChunkCopyright © 2022 Hazelcast, Inc.. All Rights Reserved.