Package io.prestosql.operator
Class RowReferencePageManager.LoadCursor
- java.lang.Object
-
- io.prestosql.operator.RowReferencePageManager.LoadCursor
-
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
- RowReferencePageManager
public static class RowReferencePageManager.LoadCursor extends Object implements 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadvance()longallocateRowId()voidclose()intcompareTo(it.unimi.dsi.fastutil.longs.LongComparator rowIdComparator, long rowId)
-
-
-
Method Detail
-
advance
public boolean advance()
-
compareTo
public int compareTo(it.unimi.dsi.fastutil.longs.LongComparator rowIdComparator, long rowId)
-
allocateRowId
public long allocateRowId()
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
-