public static class LocalExchangeSinkOperator.LocalExchangeSinkOperatorFactory extends Object implements OperatorFactory, LocalPlannerAware
| Constructor and Description |
|---|
LocalExchangeSinkOperatorFactory(LocalExchange.LocalExchangeFactory localExchangeFactory,
int operatorId,
PlanNodeId planNodeId,
LocalExchange.LocalExchangeSinkFactoryId sinkFactoryId,
Function<Page,Page> pagePreprocessor) |
| Modifier and Type | Method and Description |
|---|---|
Operator |
createOperator(DriverContext driverContext) |
OperatorFactory |
duplicate() |
void |
localPlannerComplete() |
void |
noMoreOperators()
Declare that createOperator will not be called any more and release
any resources associated with this factory.
|
void |
noMoreOperators(Lifespan lifespan)
Declare that createOperator will not be called any more for the specified Lifespan,
and release any resources associated with this factory.
|
public LocalExchangeSinkOperatorFactory(LocalExchange.LocalExchangeFactory localExchangeFactory, int operatorId, PlanNodeId planNodeId, LocalExchange.LocalExchangeSinkFactoryId sinkFactoryId, Function<Page,Page> pagePreprocessor)
public Operator createOperator(DriverContext driverContext)
createOperator in interface OperatorFactorypublic void noMoreOperators()
OperatorFactoryThis 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.
noMoreOperators in interface OperatorFactorypublic void noMoreOperators(Lifespan lifespan)
OperatorFactoryThis 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.
noMoreOperators in interface OperatorFactorypublic OperatorFactory duplicate()
duplicate in interface OperatorFactorypublic void localPlannerComplete()
localPlannerComplete in interface LocalPlannerAwareCopyright © 2012–2019. All rights reserved.