Class TopN
java.lang.Object
org.apache.drill.exec.physical.base.AbstractBase
org.apache.drill.exec.physical.base.AbstractSingle
org.apache.drill.exec.physical.config.Sort
org.apache.drill.exec.physical.config.TopN
- All Implemented Interfaces:
- Iterable<PhysicalOperator>,- GraphValue<PhysicalOperator>,- PhysicalOperator
- 
Field SummaryFieldsFields inherited from class org.apache.drill.exec.physical.base.AbstractSinglechildFields inherited from class org.apache.drill.exec.physical.base.AbstractBaseINIT_ALLOCATION, initialAllocation, MAX_ALLOCATION, maxAllocation, userName
- 
Constructor SummaryConstructorsConstructorDescriptionTopN(PhysicalOperator child, List<Order.Ordering> orderings, boolean reverse, int limit) 
- 
Method SummaryModifier and TypeMethodDescription<T,X, E extends Throwable> 
 Taccept(PhysicalVisitor<T, X, E> physicalVisitor, X value) Provides capability to build a set of output based on traversing a query graph tree.intgetLimit()protected PhysicalOperatorgetNewWithChild(PhysicalOperator child) booleantoString()Methods inherited from class org.apache.drill.exec.physical.base.AbstractSinglegetChild, getNewWithChildren, iteratorMethods inherited from class org.apache.drill.exec.physical.base.AbstractBaseaccept, getCost, getInitialAllocation, getMaxAllocation, getOperatorId, getUserName, isBufferedOperator, isExecutable, setCost, setMaxAllocation, setOperatorIdMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliterator
- 
Field Details- 
OPERATOR_TYPE- See Also:
 
 
- 
- 
Constructor Details- 
TopN
 
- 
- 
Method Details- 
getOrderings- Overrides:
- getOrderingsin class- Sort
 
- 
getReversepublic boolean getReverse()- Overrides:
- getReversein class- Sort
 
- 
getLimitpublic int getLimit()
- 
acceptpublic <T,X, T acceptE extends Throwable> (PhysicalVisitor<T, X, throws EE> physicalVisitor, X value) Description copied from interface:PhysicalOperatorProvides capability to build a set of output based on traversing a query graph tree.- Specified by:
- acceptin interface- PhysicalOperator
- Overrides:
- acceptin class- Sort
- Parameters:
- physicalVisitor-
- Throws:
- E
 
- 
getNewWithChild- Overrides:
- getNewWithChildin class- Sort
 
- 
getOperatorType- Specified by:
- getOperatorTypein interface- PhysicalOperator
- Overrides:
- getOperatorTypein class- Sort
 
- 
toString
 
-