Package io.trino.operator.index
Interface IndexedData
-
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
IndexSnapshot,StreamingIndexedData
public interface IndexedData extends Closeable
-
-
Field Summary
Fields Modifier and Type Field Description static longNO_MORE_POSITIONSstatic longUNLOADED_INDEX_KEY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidappendTo(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 Detail
-
UNLOADED_INDEX_KEY
static final long UNLOADED_INDEX_KEY
- See Also:
- Constant Field Values
-
NO_MORE_POSITIONS
static final long NO_MORE_POSITIONS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getJoinPosition
long getJoinPosition(int position, Page page)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
void appendTo(long position, PageBuilder pageBuilder, int outputChannelOffset)
-
close
void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-