Interface JournalFile

  • All Known Implementing Classes:
    JournalFileImpl

    public interface JournalFile
    • Method Detail

      • isReclaimable

        default boolean isReclaimable()
      • setReclaimable

        default void setReclaimable​(boolean reclaimable)
      • 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:
        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()