Package io.trino.operator
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 TypeMethodDescriptionlongAllocate a stable row ID that can be used to reference this row at a future point.intcompareTo(RowIdComparisonStrategy strategy, long rowId) Compares the referenced row to the specified row ID using the provided RowIdComparisonStrategy.booleanequals(RowIdHashStrategy strategy, long rowId) Checks equality of the referenced row with the specified row ID using the provided RowIdHashStrategy.longhash(RowIdHashStrategy strategy) Calculates the hash of the referenced row using the provided RowIdHashStrategy.
-
Method Details
-
compareTo
Compares the referenced row to the specified row ID using the provided RowIdComparisonStrategy. -
equals
Checks equality of the referenced row with the specified row ID using the provided RowIdHashStrategy. -
hash
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.
-