Package io.trino.operator.join
Interface LookupSource
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
IndexLookupSource,JoinHash,OuterLookupSource,PartitionedLookupSource,PartitionedLookupSource
-
Method Summary
Modifier and TypeMethodDescriptionvoidappendTo(long position, PageBuilder pageBuilder, int outputChannelOffset) voidclose()longdefault voidgetJoinPosition(int[] positions, Page hashChannelsPage, Page allChannelsPage, long[] result) The `result` array is global to the entire processed page, while the `positions` array may hold any number of selected positions from this pagedefault voidgetJoinPosition(int[] positions, Page hashChannelsPage, Page allChannelsPage, long[] rawHashes, long[] result) The `rawHashes` and `result` arrays are global to the entire processed page (thus, the same size), while the `positions` array may hold any number of selected positions from this pagelonggetJoinPosition(int position, Page hashChannelsPage, Page allChannelsPage) longgetJoinPosition(int position, Page hashChannelsPage, Page allChannelsPage, long rawHash) longlonggetNextJoinPosition(long currentJoinPosition, int probePosition, Page allProbeChannelsPage) booleanisEmpty()booleanisJoinPositionEligible(long currentJoinPosition, int probePosition, Page allProbeChannelsPage) longjoinPositionWithinPartition(long joinPosition)
-
Method Details
-
getInMemorySizeInBytes
long getInMemorySizeInBytes() -
getJoinPositionCount
long getJoinPositionCount() -
joinPositionWithinPartition
long joinPositionWithinPartition(long joinPosition) -
getJoinPosition
default void getJoinPosition(int[] positions, Page hashChannelsPage, Page allChannelsPage, long[] rawHashes, long[] result) The `rawHashes` and `result` arrays are global to the entire processed page (thus, the same size), while the `positions` array may hold any number of selected positions from this page -
getJoinPosition
-
getJoinPosition
default void getJoinPosition(int[] positions, Page hashChannelsPage, Page allChannelsPage, long[] result) The `result` array is global to the entire processed page, while the `positions` array may hold any number of selected positions from this page -
getJoinPosition
-
getNextJoinPosition
-
appendTo
-
isJoinPositionEligible
boolean isJoinPositionEligible(long currentJoinPosition, int probePosition, Page allProbeChannelsPage) -
isEmpty
boolean isEmpty() -
close
void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-