Interface JournalFile

All Known Implementing Classes:
JournalFileImpl

public interface JournalFile
  • Method Details

    • 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
    • fileRemoved

      void fileRemoved(JournalFile fileRemoved)
      Callback for when a file is removed. to cleanup negatives and avoid leaks.
    • 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:
      true if 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()