Interface JournalFile
-
- All Known Implementing Classes:
JournalFileImpl
public interface JournalFile
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidaddSize(int bytes)voiddecPosCount()voiddecSize(int bytes)intgetAddRecord()SequentialFilegetFile()longgetFileID()intgetJournalVersion()intgetLiveSize()intgetNegCount(JournalFile file)intgetPosCount()intgetRecordID()This is a field to identify that records on this file actually belong to the current file.intgetReplaceableCount()intgetTotalNegativeToOthers()The total number of deletes this file hasvoidincAddRecord()voidincNegCount(JournalFile file)voidincNegCount(JournalFile file, int delta)voidincPosCount()voidincReplaceableCount()booleanisCanReclaim()Whether this file's contents can deleted and the file reused.booleanisNegReclaimCriteria()Whether this file deletes are on files that are either marked for reclaim or have already been reclaimedbooleanisPosReclaimCriteria()Whether this file additions all have a delete in some other filedefault booleanisReclaimable()voidsetNegReclaimCriteria()voidsetPosReclaimCriteria()default voidsetReclaimable(boolean reclaimable)
-
-
-
Method Detail
-
isReclaimable
default boolean isReclaimable()
-
setReclaimable
default void setReclaimable(boolean reclaimable)
-
getNegCount
int getNegCount(JournalFile file)
-
incNegCount
void incNegCount(JournalFile file)
-
incNegCount
void incNegCount(JournalFile file, int delta)
-
getPosCount
int getPosCount()
-
incPosCount
void incPosCount()
-
decPosCount
void decPosCount()
-
getReplaceableCount
int getReplaceableCount()
-
incReplaceableCount
void incReplaceableCount()
-
incAddRecord
void incAddRecord()
-
getAddRecord
int getAddRecord()
-
addSize
void addSize(int bytes)
-
decSize
void decSize(int bytes)
-
getLiveSize
int getLiveSize()
-
getTotalNegativeToOthers
int getTotalNegativeToOthers()
The total number of deletes this file has
-
isPosReclaimCriteria
boolean isPosReclaimCriteria()
Whether this file additions all have a delete in some other file
-
setPosReclaimCriteria
void setPosReclaimCriteria()
-
isNegReclaimCriteria
boolean isNegReclaimCriteria()
Whether this file deletes are on files that are either marked for reclaim or have already been reclaimed
-
setNegReclaimCriteria
void setNegReclaimCriteria()
-
isCanReclaim
boolean isCanReclaim()
Whether this file's contents can deleted and the file reused.- Returns:
trueif the file can already be deleted.
-
getRecordID
int getRecordID()
This is a field to identify that records on this file actually belong to the current file. The possible implementation for this is fileID & Integer.MAX_VALUE
-
getFileID
long getFileID()
-
getJournalVersion
int getJournalVersion()
-
getFile
SequentialFile getFile()
-
-