Package io.trino.operator
Class TopNProcessor
java.lang.Object
io.trino.operator.TopNProcessor
Returns the top N rows from the source sorted according to the specified ordering in the keyChannelIndex channel.
-
Constructor Summary
ConstructorsConstructorDescriptionTopNProcessor(AggregatedMemoryContext aggregatedMemoryContext, List<Type> types, int n, List<Integer> sortChannels, List<SortOrder> sortOrders, TypeOperators typeOperators) -
Method Summary
Modifier and TypeMethodDescriptionvoidboolean
-
Constructor Details
-
TopNProcessor
public TopNProcessor(AggregatedMemoryContext aggregatedMemoryContext, List<Type> types, int n, List<Integer> sortChannels, List<SortOrder> sortOrders, TypeOperators typeOperators)
-
-
Method Details
-
addInput
-
getOutput
-
noMoreOutput
public boolean noMoreOutput()
-