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

    Modifier and Type
    Method
    Description
    long
    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
    Calculates the hash of the referenced row using the provided RowIdHashStrategy.
  • Method Details

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