Interface RowReference

  • All Known Implementing Classes:
    RowReferencePageManager.LoadCursor

    public interface RowReference
    Reference to a row.

    Note: RowReference gives us the ability to defer row ID generation (which can be expensive in tight loops).

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      long allocateRowId()
      Allocate a stable row ID that can be used to reference this row at a future point.
      int compareTo​(RowIdComparisonStrategy strategy, long rowId)
      Compares the referenced row to the specified row ID using the provided RowIdComparisonStrategy.
      boolean equals​(RowIdHashStrategy strategy, long rowId)
      Checks equality of the referenced row with the specified row ID using the provided RowIdHashStrategy.
      long hash​(RowIdHashStrategy strategy)
      Calculates the hash of the referenced row using the provided RowIdHashStrategy.
    • Method Detail

      • compareTo

        int compareTo​(RowIdComparisonStrategy strategy,
                      long rowId)
        Compares the referenced row to the specified row ID using the provided RowIdComparisonStrategy.
      • equals

        boolean equals​(RowIdHashStrategy strategy,
                       long rowId)
        Checks equality of the referenced row with the specified row ID using the provided RowIdHashStrategy.
      • hash

        long hash​(RowIdHashStrategy strategy)
        Calculates the hash of the referenced row using the provided RowIdHashStrategy.
      • allocateRowId

        long allocateRowId()
        Allocate a stable row ID that can be used to reference this row at a future point.