Class ReplaceCandidate

java.lang.Object
org.apache.ignite.internal.pagemem.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 Details

    • ReplaceCandidate

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

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

      public int groupId()
      Returns:
      group ID.
    • pageId

      public int pageId()
      Returns:
      page ID.
    • toString

      public String toString()
      Overrides:
      toString in class Object