Package io.trino.operator.join
Class PartitionedLookupSource
- java.lang.Object
-
- io.trino.operator.join.PartitionedLookupSource
-
- All Implemented Interfaces:
LookupSource,Closeable,AutoCloseable
@NotThreadSafe public class PartitionedLookupSource extends Object implements LookupSource
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendTo(long partitionedJoinPosition, PageBuilder pageBuilder, int outputChannelOffset)voidclose()static TrackingLookupSourceSuppliercreatePartitionedLookupSourceSupplier(List<Supplier<LookupSource>> partitions, List<Type> hashChannelTypes, boolean outer, BlockTypeOperators blockTypeOperators)intgetChannelCount()longgetInMemorySizeInBytes()longgetJoinPosition(int position, Page hashChannelsPage, Page allChannelsPage)longgetJoinPosition(int position, Page hashChannelsPage, Page allChannelsPage, long rawHash)longgetJoinPositionCount()longgetNextJoinPosition(long currentJoinPosition, int probePosition, Page allProbeChannelsPage)booleanisEmpty()booleanisJoinPositionEligible(long currentJoinPosition, int probePosition, Page allProbeChannelsPage)longjoinPositionWithinPartition(long joinPosition)
-
-
-
Method Detail
-
createPartitionedLookupSourceSupplier
public static TrackingLookupSourceSupplier createPartitionedLookupSourceSupplier(List<Supplier<LookupSource>> partitions, List<Type> hashChannelTypes, boolean outer, BlockTypeOperators blockTypeOperators)
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceLookupSource
-
getChannelCount
public int getChannelCount()
- Specified by:
getChannelCountin interfaceLookupSource
-
getJoinPositionCount
public long getJoinPositionCount()
- Specified by:
getJoinPositionCountin interfaceLookupSource
-
getInMemorySizeInBytes
public long getInMemorySizeInBytes()
- Specified by:
getInMemorySizeInBytesin interfaceLookupSource
-
getJoinPosition
public long getJoinPosition(int position, Page hashChannelsPage, Page allChannelsPage)- Specified by:
getJoinPositionin interfaceLookupSource
-
getJoinPosition
public long getJoinPosition(int position, Page hashChannelsPage, Page allChannelsPage, long rawHash)- Specified by:
getJoinPositionin interfaceLookupSource
-
getNextJoinPosition
public long getNextJoinPosition(long currentJoinPosition, int probePosition, Page allProbeChannelsPage)- Specified by:
getNextJoinPositionin interfaceLookupSource
-
isJoinPositionEligible
public boolean isJoinPositionEligible(long currentJoinPosition, int probePosition, Page allProbeChannelsPage)- Specified by:
isJoinPositionEligiblein interfaceLookupSource
-
appendTo
public void appendTo(long partitionedJoinPosition, PageBuilder pageBuilder, int outputChannelOffset)- Specified by:
appendToin interfaceLookupSource
-
joinPositionWithinPartition
public long joinPositionWithinPartition(long joinPosition)
- Specified by:
joinPositionWithinPartitionin interfaceLookupSource
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceLookupSource
-
-