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

    Modifier and Type
    Method
    Description
    int
    Return the full generation of this entry.
    int
    Return the generation of this entry.
    int
    Return the length of this entry in the archive.
    long
    Return the least significant bits of the identifier of this entry.
    long
    Return the most significant bits of the identifier of this entry.
    boolean
    Return true if this entry was generated by a compaction operation.
  • Method Details

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