Class ReplaceCandidate


  • public class ReplaceCandidate
    extends Object
    Replacement removal candidate. Class represents some page from loaded pages table. Usually candidate is found during random LoadedPagesMap touch.
    • Constructor Detail

      • ReplaceCandidate

        public ReplaceCandidate​(int gen,
                                long relPtr,
                                FullPageId fullId)
        Parameters:
        gen - Partition generation.
        relPtr - Relative pointer to page.
        fullId - Full page ID.
    • Method Detail

      • generation

        public int generation()
        Returns:
        Partition generation saved in map, too old value means page may be safely cleared.
      • relativePointer

        public long relativePointer()
        Returns:
        Relative pointer to page.
      • fullId

        public FullPageId fullId()
        Returns:
        Index.