Package io.trino.operator.exchange
Class LocalExchangeSinkOperator.LocalExchangeSinkOperatorFactory
java.lang.Object
io.trino.operator.exchange.LocalExchangeSinkOperator.LocalExchangeSinkOperatorFactory
- All Implemented Interfaces:
LocalPlannerAware,OperatorFactory
- Enclosing class:
- LocalExchangeSinkOperator
public static class LocalExchangeSinkOperator.LocalExchangeSinkOperatorFactory
extends Object
implements OperatorFactory, LocalPlannerAware
-
Constructor Summary
ConstructorsConstructorDescriptionLocalExchangeSinkOperatorFactory(LocalExchange.LocalExchangeFactory localExchangeFactory, int operatorId, PlanNodeId planNodeId, LocalExchange.LocalExchangeSinkFactoryId sinkFactoryId, Function<Page, Page> pagePreprocessor) -
Method Summary
Modifier and TypeMethodDescriptioncreateOperator(DriverContext driverContext) voidvoidDeclare 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 Details
-
LocalExchangeSinkOperatorFactory
public LocalExchangeSinkOperatorFactory(LocalExchange.LocalExchangeFactory localExchangeFactory, int operatorId, PlanNodeId planNodeId, LocalExchange.LocalExchangeSinkFactoryId sinkFactoryId, Function<Page, Page> pagePreprocessor)
-
-
Method Details
-
createOperator
- 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
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
-
duplicate
- Specified by:
duplicatein interfaceOperatorFactory
-
localPlannerComplete
public void localPlannerComplete()- Specified by:
localPlannerCompletein interfaceLocalPlannerAware
-