Package io.prestosql.operator
Class TopNProcessor
- java.lang.Object
-
- io.prestosql.operator.TopNProcessor
-
public class TopNProcessor extends Object
Returns the top N rows from the source sorted according to the specified ordering in the keyChannelIndex channel.
-
-
Constructor Summary
Constructors Constructor Description TopNProcessor(AggregatedMemoryContext aggregatedMemoryContext, List<Type> types, int n, List<Integer> sortChannels, List<SortOrder> sortOrders, TypeOperators typeOperators)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addInput(Page page)
Page
getOutput()
boolean
noMoreOutput()
-
-
-
Constructor Detail
-
TopNProcessor
public TopNProcessor(AggregatedMemoryContext aggregatedMemoryContext, List<Type> types, int n, List<Integer> sortChannels, List<SortOrder> sortOrders, TypeOperators typeOperators)
-
-