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 OperatorFactory
public void noMoreOperators()
OperatorFactory
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.
noMoreOperators
in interface OperatorFactory
public void noMoreOperators(Lifespan lifespan)
OperatorFactory
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.
noMoreOperators
in interface OperatorFactory
public OperatorFactory duplicate()
duplicate
in interface OperatorFactory
public void localPlannerComplete()
localPlannerComplete
in interface LocalPlannerAware
Copyright © 2012–2019. All rights reserved.