Interface SegmentArchiveEntry

  • All Known Subinterfaces:
    IndexEntry
    All Known Implementing Classes:
    RemoteSegmentArchiveEntry, SimpleIndexEntry

    public interface SegmentArchiveEntry
    Represents a single entry (segment) in the segment archive. The segment is identified by the UUID, which can be split into two Long integers. The entry also has its length and 3 properties related to the garbage collection process: generation, full generation and compacted status.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getFullGeneration()
      Return the full generation of this entry.
      int getGeneration()
      Return the generation of this entry.
      int getLength()
      Return the length of this entry in the archive.
      long getLsb()
      Return the least significant bits of the identifier of this entry.
      long getMsb()
      Return the most significant bits of the identifier of this entry.
      boolean isCompacted()
      Return true if this entry was generated by a compaction operation.
    • Method Detail

      • getMsb

        long getMsb()
        Return the most significant bits of the identifier of this entry.
        Returns:
        the most significant bits of the identifier of this entry.
      • getLsb

        long getLsb()
        Return the least significant bits of the identifier of this entry.
        Returns:
        the least significant bits of the identifier of this entry.
      • getLength

        int getLength()
        Return the length of this entry in the archive.
        Returns:
        the length of this entry in the archive.
      • getGeneration

        int getGeneration()
        Return the generation of this entry.
        Returns:
        the generation of this entry.
      • getFullGeneration

        int getFullGeneration()
        Return the full generation of this entry.
        Returns:
        the full generation of this entry.
      • isCompacted

        boolean isCompacted()
        Return true if this entry was generated by a compaction operation.
        Returns:
        true if this entry was generated by a compaction operation.