Package io.trino.operator
Interface RowReference
-
- All Known Implementing Classes:
RowReferencePageManager.LoadCursor
public interface RowReferenceReference 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 longallocateRowId()Allocate 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 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.
-
-