public class ExternalSort extends Sort
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_SORT_ALLOCATION |
static String |
OPERATOR_TYPE |
child
INIT_ALLOCATION, initialAllocation, MAX_ALLOCATION, maxAllocation, userName
Constructor and Description |
---|
ExternalSort(PhysicalOperator child,
List<Order.Ordering> orderings,
boolean reverse) |
Modifier and Type | Method and Description |
---|---|
protected PhysicalOperator |
getNewWithChild(PhysicalOperator child) |
String |
getOperatorType() |
boolean |
isBufferedOperator(QueryContext queryContext)
The External Sort operator supports spilling
|
void |
setMaxAllocation(long maxAllocation)
Any operator that supports spilling should override this method
|
accept, getOrderings, getReverse, getSVMode, toString
getChild, getNewWithChildren, iterator
accept, getCost, getInitialAllocation, getMaxAllocation, getOperatorId, getUserName, isExecutable, setCost, setOperatorId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public static final long DEFAULT_SORT_ALLOCATION
public static final String OPERATOR_TYPE
public ExternalSort(PhysicalOperator child, List<Order.Ordering> orderings, boolean reverse)
protected PhysicalOperator getNewWithChild(PhysicalOperator child)
getNewWithChild
in class Sort
public String getOperatorType()
getOperatorType
in interface PhysicalOperator
getOperatorType
in class Sort
public void setMaxAllocation(long maxAllocation)
AbstractBase
setMaxAllocation
in interface PhysicalOperator
setMaxAllocation
in class AbstractBase
maxAllocation
- The max memory allocation to be setpublic boolean isBufferedOperator(QueryContext queryContext)
isBufferedOperator
in interface PhysicalOperator
isBufferedOperator
in class AbstractBase
queryContext
- Copyright © 1970 The Apache Software Foundation. All rights reserved.