Class MemoryCalculator
java.lang.Object
org.apache.drill.exec.physical.base.AbstractPhysicalVisitor<RET,Wrapper,EXCEP>
org.apache.drill.exec.planner.AbstractOpWrapperVisitor<Void,RuntimeException>
org.apache.drill.exec.planner.fragment.MemoryCalculator
- All Implemented Interfaces:
PhysicalVisitor<Void,
Wrapper, RuntimeException>
A visitor to compute memory requirements for each operator in a minor fragment.
This visitor will be called for each major fragment. It traverses the physical operators
in that major fragment and computes the memory for each operator per each minor fragment.
The minor fragment memory resources are further grouped into per Drillbit resource
requirements.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionList<org.apache.commons.lang3.tuple.Pair<PhysicalOperator,
Long>> visitOp
(PhysicalOperator op, Wrapper fragment) visitReceivingExchange
(Exchange exchange, Wrapper fragment) visitSendingExchange
(Exchange exchange, Wrapper fragment) Methods inherited from class org.apache.drill.exec.planner.AbstractOpWrapperVisitor
visitExchange
Methods inherited from class org.apache.drill.exec.physical.base.AbstractPhysicalVisitor
visitBroadcastSender, visitChildren, visitFilter, visitFlatten, visitGroupScan, visitHashAggregate, visitHashPartitionSender, visitHashPartitionSender, visitIteratorValidator, visitLateralJoin, visitLimit, visitMergingReceiver, visitOrderedPartitionSender, visitProducerConsumer, visitProject, visitRangePartitionSender, visitReceiver, visitRowKeyJoin, visitScreen, visitSender, visitSetOp, visitSingleSender, visitSort, visitStatisticsAggregate, visitStatisticsMerge, visitStore, visitStreamingAggregate, visitSubScan, visitTableModify, visitTrace, visitUnion, visitUnnest, visitUnorderedReceiver, visitUnpivot, visitValues, visitWindowFrame, visitWriter
-
Constructor Details
-
MemoryCalculator
-
-
Method Details
-
visitSendingExchange
- Overrides:
visitSendingExchange
in classAbstractOpWrapperVisitor<Void,
RuntimeException> - Throws:
RuntimeException
-
visitReceivingExchange
- Overrides:
visitReceivingExchange
in classAbstractOpWrapperVisitor<Void,
RuntimeException> - Throws:
RuntimeException
-
getBufferedOperators
public List<org.apache.commons.lang3.tuple.Pair<PhysicalOperator,Long>> getBufferedOperators(CoordinationProtos.DrillbitEndpoint endpoint) -
visitOp
- Specified by:
visitOp
in interfacePhysicalVisitor<Void,
Wrapper, RuntimeException> - Overrides:
visitOp
in classAbstractPhysicalVisitor<Void,
Wrapper, RuntimeException>
-