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