Class UsageMap.PageCursor

  • Enclosing class:
    UsageMap

    public final class UsageMap.PageCursor
    extends Object
    Utility class to traverse over the pages in the UsageMap. Remains valid in the face of usage map modifications.
    • Method Detail

      • getUsageMap

        public UsageMap getUsageMap()
      • isUpToDate

        public boolean isUpToDate()
        Returns true if this cursor is up-to-date with respect to its usage map.
      • getNextPage

        public int getNextPage()
        Returns:
        valid page number if there was another page to read, RowIdImpl.LAST_PAGE_NUMBER otherwise
      • getPreviousPage

        public int getPreviousPage()
        Returns:
        valid page number if there was another page to read, RowIdImpl.FIRST_PAGE_NUMBER otherwise
      • reset

        public void reset()
        After calling this method, getNextPage will return the first page in the map
      • beforeFirst

        public void beforeFirst()
        After calling this method, getNextPage() will return the first page in the map
      • afterLast

        public void afterLast()
        After calling this method, getPreviousPage() will return the last page in the map