Package io.prestosql.operator
Class PartitionedLookupSource
- java.lang.Object
-
- io.prestosql.operator.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 void
appendTo(long partitionedJoinPosition, PageBuilder pageBuilder, int outputChannelOffset)
void
close()
static TrackingLookupSourceSupplier
createPartitionedLookupSourceSupplier(List<Supplier<LookupSource>> partitions, List<Type> hashChannelTypes, boolean outer, BlockTypeOperators blockTypeOperators)
int
getChannelCount()
long
getInMemorySizeInBytes()
long
getJoinPosition(int position, Page hashChannelsPage, Page allChannelsPage)
long
getJoinPosition(int position, Page hashChannelsPage, Page allChannelsPage, long rawHash)
long
getJoinPositionCount()
long
getNextJoinPosition(long currentJoinPosition, int probePosition, Page allProbeChannelsPage)
boolean
isEmpty()
boolean
isJoinPositionEligible(long currentJoinPosition, int probePosition, Page allProbeChannelsPage)
long
joinPositionWithinPartition(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:
isEmpty
in interfaceLookupSource
-
getChannelCount
public int getChannelCount()
- Specified by:
getChannelCount
in interfaceLookupSource
-
getJoinPositionCount
public long getJoinPositionCount()
- Specified by:
getJoinPositionCount
in interfaceLookupSource
-
getInMemorySizeInBytes
public long getInMemorySizeInBytes()
- Specified by:
getInMemorySizeInBytes
in interfaceLookupSource
-
getJoinPosition
public long getJoinPosition(int position, Page hashChannelsPage, Page allChannelsPage)
- Specified by:
getJoinPosition
in interfaceLookupSource
-
getJoinPosition
public long getJoinPosition(int position, Page hashChannelsPage, Page allChannelsPage, long rawHash)
- Specified by:
getJoinPosition
in interfaceLookupSource
-
getNextJoinPosition
public long getNextJoinPosition(long currentJoinPosition, int probePosition, Page allProbeChannelsPage)
- Specified by:
getNextJoinPosition
in interfaceLookupSource
-
isJoinPositionEligible
public boolean isJoinPositionEligible(long currentJoinPosition, int probePosition, Page allProbeChannelsPage)
- Specified by:
isJoinPositionEligible
in interfaceLookupSource
-
appendTo
public void appendTo(long partitionedJoinPosition, PageBuilder pageBuilder, int outputChannelOffset)
- Specified by:
appendTo
in interfaceLookupSource
-
joinPositionWithinPartition
public long joinPositionWithinPartition(long joinPosition)
- Specified by:
joinPositionWithinPartition
in interfaceLookupSource
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceLookupSource
-
-