public class ExternalSort extends Sort
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_SORT_ALLOCATION |
static String |
OPERATOR_TYPE |
childINIT_ALLOCATION, initialAllocation, MAX_ALLOCATION, maxAllocation| 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, toStringgetChild, getNewWithChildren, iteratoraccept, getCost, getInitialAllocation, getMaxAllocation, getOperatorId, getUserName, isExecutable, setCost, setOperatorIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic 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 Sortpublic String getOperatorType()
getOperatorType in interface PhysicalOperatorgetOperatorType in class Sortpublic void setMaxAllocation(long maxAllocation)
AbstractBasesetMaxAllocation in interface PhysicalOperatorsetMaxAllocation in class AbstractBasemaxAllocation - The max memory allocation to be setpublic boolean isBufferedOperator(QueryContext queryContext)
isBufferedOperator in interface PhysicalOperatorisBufferedOperator in class AbstractBasequeryContext - Copyright © 2021 The Apache Software Foundation. All rights reserved.