Class ExchangeRemoverMaterializer
java.lang.Object
org.apache.drill.exec.physical.base.AbstractPhysicalVisitor<PhysicalOperator,Materializer.IndexedFragmentNode,ExecutionSetupException>
org.apache.drill.exec.planner.fragment.contrib.ExchangeRemoverMaterializer
- All Implemented Interfaces:
PhysicalVisitor<PhysicalOperator,
Materializer.IndexedFragmentNode, ExecutionSetupException>
public class ExchangeRemoverMaterializer
extends AbstractPhysicalVisitor<PhysicalOperator,Materializer.IndexedFragmentNode,ExecutionSetupException>
Materializer visitor to remove exchange(s)
NOTE: this Visitor does NOT set OperatorId, as after Exchange removal all operators need renumbering
Use OperatorIdVisitor on top to set correct OperatorId
-
Field Summary
Fields inherited from interface org.apache.drill.exec.physical.base.PhysicalVisitor
logger
-
Method Summary
Modifier and TypeMethodDescriptionvisitExchange
(Exchange exchange, Materializer.IndexedFragmentNode iNode) visitGroupScan
(GroupScan groupScan, Materializer.IndexedFragmentNode iNode) visitStore
(Store store, Materializer.IndexedFragmentNode iNode) visitSubScan
(SubScan subScan, Materializer.IndexedFragmentNode value) Methods inherited from class org.apache.drill.exec.physical.base.AbstractPhysicalVisitor
visitBroadcastSender, visitChildren, visitFilter, visitFlatten, visitHashAggregate, visitHashPartitionSender, visitHashPartitionSender, visitIteratorValidator, visitLateralJoin, visitLimit, visitMergingReceiver, visitOrderedPartitionSender, visitProducerConsumer, visitProject, visitRangePartitionSender, visitReceiver, visitRowKeyJoin, visitScreen, visitSender, visitSetOp, visitSingleSender, visitSort, visitStatisticsAggregate, visitStatisticsMerge, visitStreamingAggregate, visitTableModify, visitTrace, visitUnion, visitUnnest, visitUnorderedReceiver, visitUnpivot, visitValues, visitWindowFrame, visitWriter
-
Field Details
-
INSTANCE
-
-
Method Details
-
visitExchange
public PhysicalOperator visitExchange(Exchange exchange, Materializer.IndexedFragmentNode iNode) throws ExecutionSetupException - Specified by:
visitExchange
in interfacePhysicalVisitor<PhysicalOperator,
Materializer.IndexedFragmentNode, ExecutionSetupException> - Overrides:
visitExchange
in classAbstractPhysicalVisitor<PhysicalOperator,
Materializer.IndexedFragmentNode, ExecutionSetupException> - Throws:
ExecutionSetupException
-
visitGroupScan
public PhysicalOperator visitGroupScan(GroupScan groupScan, Materializer.IndexedFragmentNode iNode) throws ExecutionSetupException - Specified by:
visitGroupScan
in interfacePhysicalVisitor<PhysicalOperator,
Materializer.IndexedFragmentNode, ExecutionSetupException> - Overrides:
visitGroupScan
in classAbstractPhysicalVisitor<PhysicalOperator,
Materializer.IndexedFragmentNode, ExecutionSetupException> - Throws:
ExecutionSetupException
-
visitSubScan
public PhysicalOperator visitSubScan(SubScan subScan, Materializer.IndexedFragmentNode value) throws ExecutionSetupException - Specified by:
visitSubScan
in interfacePhysicalVisitor<PhysicalOperator,
Materializer.IndexedFragmentNode, ExecutionSetupException> - Overrides:
visitSubScan
in classAbstractPhysicalVisitor<PhysicalOperator,
Materializer.IndexedFragmentNode, ExecutionSetupException> - Throws:
ExecutionSetupException
-
visitStore
public PhysicalOperator visitStore(Store store, Materializer.IndexedFragmentNode iNode) throws ExecutionSetupException - Specified by:
visitStore
in interfacePhysicalVisitor<PhysicalOperator,
Materializer.IndexedFragmentNode, ExecutionSetupException> - Overrides:
visitStore
in classAbstractPhysicalVisitor<PhysicalOperator,
Materializer.IndexedFragmentNode, ExecutionSetupException> - Throws:
ExecutionSetupException
-
visitOp
public PhysicalOperator visitOp(PhysicalOperator op, Materializer.IndexedFragmentNode iNode) throws ExecutionSetupException - Specified by:
visitOp
in interfacePhysicalVisitor<PhysicalOperator,
Materializer.IndexedFragmentNode, ExecutionSetupException> - Overrides:
visitOp
in classAbstractPhysicalVisitor<PhysicalOperator,
Materializer.IndexedFragmentNode, ExecutionSetupException> - Throws:
ExecutionSetupException
-