Package io.trino.operator.index
Interface IndexedData
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
IndexSnapshot,StreamingIndexedData
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final long -
Method Summary
Modifier and TypeMethodDescriptionvoidappendTo(long position, PageBuilder pageBuilder, int outputChannelOffset) voidclose()longgetJoinPosition(int position, Page page) Returns UNLOADED_INDEX_KEY if the key has not been loaded.longgetNextJoinPosition(long currentPosition) Returns the next address to join.
-
Field Details
-
UNLOADED_INDEX_KEY
static final long UNLOADED_INDEX_KEY- See Also:
-
NO_MORE_POSITIONS
static final long NO_MORE_POSITIONS- See Also:
-
-
Method Details
-
getJoinPosition
Returns UNLOADED_INDEX_KEY if the key has not been loaded. Returns NO_MORE_POSITIONS if the key has been loaded, but has no values. Returns a valid address if the key has been loaded and has values. -
getNextJoinPosition
long getNextJoinPosition(long currentPosition) Returns the next address to join. Returns NO_MORE_POSITIONS if there are no more values to join. -
appendTo
-
close
void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-