Package io.trino.operator
Class TopNRankingOperator.TopNRankingOperatorFactory
java.lang.Object
io.trino.operator.TopNRankingOperator.TopNRankingOperatorFactory
- All Implemented Interfaces:
OperatorFactory
- Enclosing class:
TopNRankingOperator
public static class TopNRankingOperator.TopNRankingOperatorFactory
extends Object
implements OperatorFactory
-
Constructor Summary
ConstructorsConstructorDescriptionTopNRankingOperatorFactory(int operatorId, PlanNodeId planNodeId, TopNRankingNode.RankingType rankingType, List<? extends Type> sourceTypes, List<Integer> outputChannels, List<Integer> partitionChannels, List<? extends Type> partitionTypes, List<Integer> sortChannels, List<SortOrder> sortOrder, int maxRowCountPerPartition, boolean partial, Optional<Integer> hashChannel, int expectedPositions, Optional<io.airlift.units.DataSize> maxPartialMemory, FlatHashStrategyCompiler hashStrategyCompiler, TypeOperators typeOperators, BlockTypeOperators blockTypeOperators) -
Method Summary
Modifier and TypeMethodDescriptioncreateOperator(DriverContext driverContext) voidDeclare that createOperator will not be called any more and release any resources associated with this factory.
-
Constructor Details
-
TopNRankingOperatorFactory
public TopNRankingOperatorFactory(int operatorId, PlanNodeId planNodeId, TopNRankingNode.RankingType rankingType, List<? extends Type> sourceTypes, List<Integer> outputChannels, List<Integer> partitionChannels, List<? extends Type> partitionTypes, List<Integer> sortChannels, List<SortOrder> sortOrder, int maxRowCountPerPartition, boolean partial, Optional<Integer> hashChannel, int expectedPositions, Optional<io.airlift.units.DataSize> maxPartialMemory, FlatHashStrategyCompiler hashStrategyCompiler, TypeOperators typeOperators, BlockTypeOperators blockTypeOperators)
-
-
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.
- Specified by:
noMoreOperatorsin interfaceOperatorFactory
-
duplicate
- Specified by:
duplicatein interfaceOperatorFactory
-