Package io.trino.operator.join
Class PartitionedLookupSourceFactory
java.lang.Object
io.trino.operator.join.PartitionedLookupSourceFactory
- All Implemented Interfaces:
JoinBridge,LookupSourceFactory
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPartitionedLookupSourceFactory(List<Type> types, List<Type> outputTypes, List<Type> hashChannelTypes, int partitionCount, boolean outer, TypeOperators typeOperators) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.util.concurrent.ListenableFuture<LookupSourceProvider> voiddestroy()com.google.common.util.concurrent.ListenableFuture<PartitionedConsumption<Supplier<LookupSource>>> finishProbeOperator(OptionalInt lookupJoinsCount) Can be called only afterLookupSourceFactory.createLookupSourceProvider()is done and all users ofLookupSource-s finished.getTypes()com.google.common.util.concurrent.ListenableFuture<Void> com.google.common.util.concurrent.ListenableFuture<Void> lendPartitionLookupSource(int partitionIndex, Supplier<LookupSource> partitionLookupSource) intvoidsetPartitionSpilledLookupSourceHandle(int partitionIndex, io.trino.operator.join.SpilledLookupSourceHandle spilledLookupSourceHandle) com.google.common.util.concurrent.ListenableFuture<Void> Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.trino.operator.join.LookupSourceFactory
setTaskContext
-
Field Details
-
NO_SPILL_EPOCH
public static final long NO_SPILL_EPOCH- See Also:
-
-
Constructor Details
-
PartitionedLookupSourceFactory
-
-
Method Details
-
getTypes
- Specified by:
getTypesin interfaceLookupSourceFactory
-
getOutputTypes
- Specified by:
getOutputTypesin interfaceLookupSourceFactory
-
partitions
public int partitions()- Specified by:
partitionsin interfaceLookupSourceFactory
-
createLookupSourceProvider
public com.google.common.util.concurrent.ListenableFuture<LookupSourceProvider> createLookupSourceProvider()- Specified by:
createLookupSourceProviderin interfaceLookupSourceFactory
-
whenBuildFinishes
- Specified by:
whenBuildFinishesin interfaceJoinBridge
-
lendPartitionLookupSource
public com.google.common.util.concurrent.ListenableFuture<Void> lendPartitionLookupSource(int partitionIndex, Supplier<LookupSource> partitionLookupSource) -
setPartitionSpilledLookupSourceHandle
public void setPartitionSpilledLookupSourceHandle(int partitionIndex, io.trino.operator.join.SpilledLookupSourceHandle spilledLookupSourceHandle) -
finishProbeOperator
public com.google.common.util.concurrent.ListenableFuture<PartitionedConsumption<Supplier<LookupSource>>> finishProbeOperator(OptionalInt lookupJoinsCount) - Specified by:
finishProbeOperatorin interfaceLookupSourceFactory
-
getOuterPositionIterator
Description copied from interface:LookupSourceFactoryCan be called only afterLookupSourceFactory.createLookupSourceProvider()is done and all users ofLookupSource-s finished.- Specified by:
getOuterPositionIteratorin interfaceJoinBridge- Specified by:
getOuterPositionIteratorin interfaceLookupSourceFactory
-
destroy
public void destroy()- Specified by:
destroyin interfaceJoinBridge- Specified by:
destroyin interfaceLookupSourceFactory
-
isDestroyed
- Specified by:
isDestroyedin interfaceLookupSourceFactory
-