Package io.trino.operator
Class RowReferencePageManager
java.lang.Object
io.trino.operator.RowReferencePageManager
Page buffering manager that enables access to individual rows via stable row IDs. This allows computation to be
built against these row IDs, while still enabling bulk memory optimizations such as compaction and lazy loading
behind the scenes. Callers are responsible for explicitly de-referencing any rows that are no longer needed.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classCursor that allows callers to advance through the registered page and dictate whether a specific position should be preserved with a stable row ID. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddereference(long rowId) getPage(long rowId) intgetPosition(long rowId) longsizeOf()
-
Constructor Details
-
RowReferencePageManager
public RowReferencePageManager()
-
-
Method Details
-
add
-
add
-
dereference
public void dereference(long rowId) -
getPage
-
getPosition
public int getPosition(long rowId) -
compactIfNeeded
public void compactIfNeeded() -
sizeOf
public long sizeOf()
-