public class ActiveValChunk 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 |
|---|
ActiveValChunk(long seq,
RecordMap records,
ChunkFileOut out,
GcHelper gcHelper) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addStep1(long recordSeq,
long keyPrefix,
byte[] keyBytes,
byte[] valueBytes)
Writes a record to the chunk file and updates the
size property on this object. |
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()
Converts this active chunk into a stable chunk.
|
close, flagForFsyncOnClose, fsyncaddStep2, addStep2, full, grow, insertOrUpdateTombstone, insertOrUpdateValue, sizebase, dispose, fnameSuffix, needsDismissing, needsDismissing, retire, retire, tombChunkSizeLimit, toString, valChunkSizeLimitclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclose, flagForFsyncOnClose, fsync, sizepublic ActiveValChunk(long seq,
RecordMap records,
ChunkFileOut out,
GcHelper gcHelper)
public boolean addStep1(long recordSeq,
long keyPrefix,
byte[] keyBytes,
byte[] valueBytes)
ActiveChunksize property on this object.
May be called on the mutator thread.addStep1 in interface ActiveChunktrue if the chunk is now full.public StableValChunk toStableChunk()
ActiveChunktoStableChunk in interface ActiveChunktoStableChunk in class WriteThroughChunkpublic void insertOrUpdate(long recordSeq,
long keyPrefix,
KeyHandle kh,
int ignored,
int size)
GrowingChunkinsertOrUpdate in class GrowingChunkprotected int determineSizeLimit()
GrowingChunkdetermineSizeLimit in class GrowingChunkCopyright © 2022 Hazelcast, Inc.. All Rights Reserved.