public class TopN extends Sort
Modifier and Type | Field and Description |
---|---|
static String |
OPERATOR_TYPE |
child
INIT_ALLOCATION, initialAllocation, MAX_ALLOCATION, maxAllocation, userName
Constructor and Description |
---|
TopN(PhysicalOperator child,
List<Order.Ordering> orderings,
boolean reverse,
int limit) |
Modifier and Type | Method and Description |
---|---|
<T,X,E extends Throwable> |
accept(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) |
String |
getOperatorType() |
List<Order.Ordering> |
getOrderings() |
boolean |
getReverse() |
String |
toString() |
getChild, getNewWithChildren, iterator
accept, getCost, getInitialAllocation, getMaxAllocation, getOperatorId, getUserName, isBufferedOperator, isExecutable, setCost, setMaxAllocation, setOperatorId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public static final String OPERATOR_TYPE
public TopN(PhysicalOperator child, List<Order.Ordering> orderings, boolean reverse, int limit)
public List<Order.Ordering> getOrderings()
getOrderings
in class Sort
public boolean getReverse()
getReverse
in class Sort
public int getLimit()
public <T,X,E extends Throwable> T accept(PhysicalVisitor<T,X,E> physicalVisitor, X value) throws E extends Throwable
PhysicalOperator
accept
in interface PhysicalOperator
accept
in class Sort
E extends Throwable
protected PhysicalOperator getNewWithChild(PhysicalOperator child)
getNewWithChild
in class Sort
public String getOperatorType()
getOperatorType
in interface PhysicalOperator
getOperatorType
in class Sort
Copyright © 1970 The Apache Software Foundation. All rights reserved.