Class RowReferencePageManager.LoadCursor

  • All Implemented Interfaces:
    RowReference, AutoCloseable
    Enclosing class:
    RowReferencePageManager

    public static class RowReferencePageManager.LoadCursor
    extends Object
    implements RowReference, AutoCloseable
    Cursor that allows callers to advance through the registered page and dictate whether a specific position should be preserved with a stable row ID. Row ID generation can be expensive in tight loops, so this allows callers to quickly skip positions that won't be needed.
    • Method Detail

      • advance

        public boolean advance()
      • compareTo

        public int compareTo​(RowIdComparisonStrategy strategy,
                             long rowId)
        Description copied from interface: RowReference
        Compares the referenced row to the specified row ID using the provided RowIdComparisonStrategy.
        Specified by:
        compareTo in interface RowReference
      • equals

        public boolean equals​(RowIdHashStrategy strategy,
                              long rowId)
        Description copied from interface: RowReference
        Checks equality of the referenced row with the specified row ID using the provided RowIdHashStrategy.
        Specified by:
        equals in interface RowReference
      • hash

        public long hash​(RowIdHashStrategy strategy)
        Description copied from interface: RowReference
        Calculates the hash of the referenced row using the provided RowIdHashStrategy.
        Specified by:
        hash in interface RowReference
      • allocateRowId

        public long allocateRowId()
        Description copied from interface: RowReference
        Allocate a stable row ID that can be used to reference this row at a future point.
        Specified by:
        allocateRowId in interface RowReference