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 Summary
Fields inherited from class org.apache.drill.exec.physical.base.AbstractSingle
child
Fields inherited from class org.apache.drill.exec.physical.base.AbstractBase
INIT_ALLOCATION, initialAllocation, MAX_ALLOCATION, maxAllocation, userName
-
Constructor Summary
ConstructorDescriptionTopN
(PhysicalOperator child, List<Order.Ordering> orderings, boolean reverse, int limit) -
Method Summary
Modifier 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.int
getLimit()
protected PhysicalOperator
getNewWithChild
(PhysicalOperator child) boolean
toString()
Methods inherited from class org.apache.drill.exec.physical.base.AbstractSingle
getChild, getNewWithChildren, iterator
Methods inherited from class org.apache.drill.exec.physical.base.AbstractBase
accept, getCost, getInitialAllocation, getMaxAllocation, getOperatorId, getUserName, isBufferedOperator, isExecutable, setCost, setMaxAllocation, setOperatorId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
OPERATOR_TYPE
- See Also:
-
-
Constructor Details
-
TopN
-
-
Method Details
-
getOrderings
- Overrides:
getOrderings
in classSort
-
getReverse
public boolean getReverse()- Overrides:
getReverse
in classSort
-
getLimit
public int getLimit() -
accept
public <T,X, T acceptE extends Throwable> (PhysicalVisitor<T, X, throws EE> physicalVisitor, X value) Description copied from interface:PhysicalOperator
Provides capability to build a set of output based on traversing a query graph tree.- Specified by:
accept
in interfacePhysicalOperator
- Overrides:
accept
in classSort
- Throws:
E extends Throwable
-
getNewWithChild
- Overrides:
getNewWithChild
in classSort
-
getOperatorType
- Specified by:
getOperatorType
in interfacePhysicalOperator
- Overrides:
getOperatorType
in classSort
-
toString
-