Interface PageReordering.PageOrdering

  • Enclosing class:
    PageReordering

    public static interface PageReordering.PageOrdering
    • Method Detail

      • distinctOrdering

        int[] distinctOrdering()
        Represents the order in which pages occur according to the offsets. Only the first occurrence of a page is being recorded.
      • reverseOrdering

        int[] reverseOrdering()
        Represents the order of the indexes at which pages occur according to the offsets. Since a page can occur multiple times within a consecutive range of offsets, the index of it's first occurrence can be added multiple times. The size of this array can be larger than the total number of pages.
      • pageOffsets

        long[] pageOffsets()
        Represents the start and end indexes within the offsets where a page starts or ends. The length of this array is determined by the length of reverseOrdering().
      • shrinkToFitReverseOrdering

        @TestOnly
        default int[] shrinkToFitReverseOrdering()
      • shrinkToFitPageOffsets

        @TestOnly
        default long[] shrinkToFitPageOffsets()