Class ExternalSort
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.ExternalSort
- All Implemented Interfaces:
Iterable<PhysicalOperator>,GraphValue<PhysicalOperator>,PhysicalOperator
-
Field Summary
FieldsFields inherited from class org.apache.drill.exec.physical.base.AbstractSingle
childFields inherited from class org.apache.drill.exec.physical.base.AbstractBase
INIT_ALLOCATION, initialAllocation, MAX_ALLOCATION, maxAllocation, userName -
Constructor Summary
ConstructorsConstructorDescriptionExternalSort(PhysicalOperator child, List<Order.Ordering> orderings, boolean reverse) -
Method Summary
Modifier and TypeMethodDescriptionprotected PhysicalOperatorgetNewWithChild(PhysicalOperator child) booleanisBufferedOperator(QueryContext queryContext) The External Sort operator supports spillingvoidsetMaxAllocation(long maxAllocation) Any operator that supports spilling should override this methodMethods inherited from class org.apache.drill.exec.physical.config.Sort
accept, getOrderings, getReverse, getSVMode, toStringMethods inherited from class org.apache.drill.exec.physical.base.AbstractSingle
getChild, getNewWithChildren, iteratorMethods inherited from class org.apache.drill.exec.physical.base.AbstractBase
accept, getCost, getInitialAllocation, getMaxAllocation, getOperatorId, getUserName, isExecutable, setCost, setOperatorIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
DEFAULT_SORT_ALLOCATION
public static final long DEFAULT_SORT_ALLOCATION- See Also:
-
OPERATOR_TYPE
- See Also:
-
-
Constructor Details
-
ExternalSort
-
-
Method Details
-
getNewWithChild
- Overrides:
getNewWithChildin classSort
-
getOperatorType
- Specified by:
getOperatorTypein interfacePhysicalOperator- Overrides:
getOperatorTypein classSort
-
setMaxAllocation
public void setMaxAllocation(long maxAllocation) Description copied from class:AbstractBaseAny operator that supports spilling should override this method- Specified by:
setMaxAllocationin interfacePhysicalOperator- Overrides:
setMaxAllocationin classAbstractBase- Parameters:
maxAllocation- The max memory allocation to be set
-
isBufferedOperator
The External Sort operator supports spilling- Specified by:
isBufferedOperatorin interfacePhysicalOperator- Overrides:
isBufferedOperatorin classAbstractBase- Parameters:
queryContext-- Returns:
- true
-