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
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
ConstructorDescriptionExternalSort
(PhysicalOperator child, List<Order.Ordering> orderings, boolean reverse) -
Method Summary
Modifier and TypeMethodDescriptionprotected PhysicalOperator
getNewWithChild
(PhysicalOperator child) boolean
isBufferedOperator
(QueryContext queryContext) The External Sort operator supports spillingvoid
setMaxAllocation
(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, 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, isExecutable, setCost, 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
-
DEFAULT_SORT_ALLOCATION
public static final long DEFAULT_SORT_ALLOCATION- See Also:
-
OPERATOR_TYPE
- See Also:
-
-
Constructor Details
-
ExternalSort
-
-
Method Details
-
getNewWithChild
- Overrides:
getNewWithChild
in classSort
-
getOperatorType
- Specified by:
getOperatorType
in interfacePhysicalOperator
- Overrides:
getOperatorType
in classSort
-
setMaxAllocation
public void setMaxAllocation(long maxAllocation) Description copied from class:AbstractBase
Any operator that supports spilling should override this method- Specified by:
setMaxAllocation
in interfacePhysicalOperator
- Overrides:
setMaxAllocation
in classAbstractBase
- Parameters:
maxAllocation
- The max memory allocation to be set
-
isBufferedOperator
The External Sort operator supports spilling- Specified by:
isBufferedOperator
in interfacePhysicalOperator
- Overrides:
isBufferedOperator
in classAbstractBase
- Parameters:
queryContext
-- Returns:
- true
-