Package io.trino.operator
Class TopNOperator
java.lang.Object
io.trino.operator.TopNOperator
- All Implemented Interfaces:
WorkProcessorOperator,AutoCloseable
Returns the top N rows from the source sorted according to the specified ordering in the keyChannelIndex channel.
-
Method Summary
Modifier and TypeMethodDescriptionstatic OperatorFactorycreateOperatorFactory(int operatorId, PlanNodeId planNodeId, List<? extends Type> types, int n, List<Integer> sortChannels, List<SortOrder> sortOrders, TypeOperators typeOperators) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.trino.operator.WorkProcessorOperator
close, getMetrics, getOperatorInfo
-
Method Details
-
createOperatorFactory
public static OperatorFactory createOperatorFactory(int operatorId, PlanNodeId planNodeId, List<? extends Type> types, int n, List<Integer> sortChannels, List<SortOrder> sortOrders, TypeOperators typeOperators) -
getOutputPages
- Specified by:
getOutputPagesin interfaceWorkProcessorOperator
-