Package io.trino.operator.join
Class LookupJoinOperatorFactory
- java.lang.Object
-
- io.trino.operator.join.LookupJoinOperatorFactory
-
- All Implemented Interfaces:
JoinOperatorFactory,OperatorFactory,WorkProcessorOperatorAdapter.AdapterWorkProcessorOperatorFactory,WorkProcessorOperatorFactory
public class LookupJoinOperatorFactory extends Object implements JoinOperatorFactory, WorkProcessorOperatorAdapter.AdapterWorkProcessorOperatorFactory
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLookupJoinOperatorFactory.JoinType-
Nested classes/interfaces inherited from interface io.trino.operator.join.JoinOperatorFactory
JoinOperatorFactory.OuterOperatorFactoryResult
-
-
Constructor Summary
Constructors Constructor Description LookupJoinOperatorFactory(int operatorId, PlanNodeId planNodeId, JoinBridgeManager<? extends LookupSourceFactory> lookupSourceFactoryManager, List<Type> probeTypes, List<Type> probeOutputTypes, List<Type> buildOutputTypes, LookupJoinOperatorFactory.JoinType joinType, boolean outputSingleMatch, boolean waitForBuild, JoinProbe.JoinProbeFactory joinProbeFactory, BlockTypeOperators blockTypeOperators, OptionalInt totalOperatorsCount, List<Integer> probeJoinChannels, OptionalInt probeHashChannel, PartitioningSpillerFactory partitioningSpillerFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()WorkProcessorOperatorcreate(ProcessorContext processorContext, WorkProcessor<Page> sourcePages)WorkProcessorOperatorAdapter.AdapterWorkProcessorOperatorcreateAdapterOperator(ProcessorContext processorContext)OperatorcreateOperator(DriverContext driverContext)Optional<JoinOperatorFactory.OuterOperatorFactoryResult>createOuterOperatorFactory()LookupJoinOperatorFactoryduplicate()intgetOperatorId()StringgetOperatorType()PlanNodeIdgetPlanNodeId()voidlifespanFinished(Lifespan lifespan)voidnoMoreOperators()Declare that createOperator will not be called any more and release any resources associated with this factory.voidnoMoreOperators(Lifespan lifespan)Declare that createOperator will not be called any more for the specified Lifespan, and release any resources associated with this factory.
-
-
-
Constructor Detail
-
LookupJoinOperatorFactory
public LookupJoinOperatorFactory(int operatorId, PlanNodeId planNodeId, JoinBridgeManager<? extends LookupSourceFactory> lookupSourceFactoryManager, List<Type> probeTypes, List<Type> probeOutputTypes, List<Type> buildOutputTypes, LookupJoinOperatorFactory.JoinType joinType, boolean outputSingleMatch, boolean waitForBuild, JoinProbe.JoinProbeFactory joinProbeFactory, BlockTypeOperators blockTypeOperators, OptionalInt totalOperatorsCount, List<Integer> probeJoinChannels, OptionalInt probeHashChannel, PartitioningSpillerFactory partitioningSpillerFactory)
-
-
Method Detail
-
createOuterOperatorFactory
public Optional<JoinOperatorFactory.OuterOperatorFactoryResult> createOuterOperatorFactory()
- Specified by:
createOuterOperatorFactoryin interfaceJoinOperatorFactory
-
createOperator
public Operator createOperator(DriverContext driverContext)
- Specified by:
createOperatorin interfaceOperatorFactory
-
noMoreOperators
public void noMoreOperators()
Description copied from interface:OperatorFactoryDeclare that createOperator will not be called any more and release any resources associated with this factory.This method will be called only once. Implementation doesn't need to worry about duplicate invocations.
It is guaranteed that this will only be invoked after
OperatorFactory.noMoreOperators(Lifespan)has been invoked for all applicable driver groups.- Specified by:
noMoreOperatorsin interfaceOperatorFactory
-
noMoreOperators
public void noMoreOperators(Lifespan lifespan)
Description copied from interface:OperatorFactoryDeclare that createOperator will not be called any more for the specified Lifespan, and release any resources associated with this factory.This method will be called only once for each Lifespan. Implementation doesn't need to worry about duplicate invocations.
It is guaranteed that this method will be invoked for all applicable driver groups before
OperatorFactory.noMoreOperators()is invoked.- Specified by:
noMoreOperatorsin interfaceOperatorFactory
-
getOperatorId
public int getOperatorId()
- Specified by:
getOperatorIdin interfaceWorkProcessorOperatorFactory
-
getPlanNodeId
public PlanNodeId getPlanNodeId()
- Specified by:
getPlanNodeIdin interfaceWorkProcessorOperatorFactory
-
getOperatorType
public String getOperatorType()
- Specified by:
getOperatorTypein interfaceWorkProcessorOperatorFactory
-
create
public WorkProcessorOperator create(ProcessorContext processorContext, WorkProcessor<Page> sourcePages)
- Specified by:
createin interfaceWorkProcessorOperatorFactory
-
createAdapterOperator
public WorkProcessorOperatorAdapter.AdapterWorkProcessorOperator createAdapterOperator(ProcessorContext processorContext)
- Specified by:
createAdapterOperatorin interfaceWorkProcessorOperatorAdapter.AdapterWorkProcessorOperatorFactory
-
lifespanFinished
public void lifespanFinished(Lifespan lifespan)
- Specified by:
lifespanFinishedin interfaceWorkProcessorOperatorFactory
-
close
public void close()
- Specified by:
closein interfaceWorkProcessorOperatorFactory
-
duplicate
public LookupJoinOperatorFactory duplicate()
- Specified by:
duplicatein interfaceOperatorFactory- Specified by:
duplicatein interfaceWorkProcessorOperatorAdapter.AdapterWorkProcessorOperatorFactory
-
-