public static class TopNOperator.TopNOperatorFactory extends Object implements OperatorFactory, WorkProcessorOperatorFactory
| Constructor and Description |
|---|
TopNOperatorFactory(int operatorId,
PlanNodeId planNodeId,
List<? extends Type> types,
int n,
List<Integer> sortChannels,
List<SortOrder> sortOrders) |
| Modifier and Type | Method and Description |
|---|---|
WorkProcessorOperator |
create(Session session,
MemoryTrackingContext memoryTrackingContext,
DriverYieldSignal yieldSignal,
WorkProcessor<Page> sourcePages) |
Operator |
createOperator(DriverContext driverContext) |
OperatorFactory |
duplicate() |
int |
getOperatorId() |
String |
getOperatorType() |
PlanNodeId |
getPlanNodeId() |
void |
noMoreOperators()
Declare that createOperator will not be called any more and release
any resources associated with this factory.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnoMoreOperatorspublic int getOperatorId()
getOperatorId in interface WorkProcessorOperatorFactorypublic PlanNodeId getPlanNodeId()
getPlanNodeId in interface WorkProcessorOperatorFactorypublic String getOperatorType()
getOperatorType in interface WorkProcessorOperatorFactorypublic 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 OperatorFactory duplicate()
duplicate in interface OperatorFactorypublic WorkProcessorOperator create(Session session, MemoryTrackingContext memoryTrackingContext, DriverYieldSignal yieldSignal, WorkProcessor<Page> sourcePages)
create in interface WorkProcessorOperatorFactoryCopyright © 2012–2019. All rights reserved.