Class SingleSender
java.lang.Object
org.apache.drill.exec.physical.base.AbstractBase
org.apache.drill.exec.physical.base.AbstractSingle
org.apache.drill.exec.physical.base.AbstractSender
org.apache.drill.exec.physical.config.SingleSender
- All Implemented Interfaces:
Iterable<PhysicalOperator>
,GraphValue<PhysicalOperator>
,FragmentLeaf
,FragmentRoot
,PhysicalOperator
,Sender
Sender that pushes all data to a single destination node.
-
Field Summary
Fields inherited from class org.apache.drill.exec.physical.base.AbstractSender
destinations, oppositeMajorFragmentId
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
ConstructorDescriptionSingleSender
(int oppositeMajorFragmentId, int oppositeMinorFragmentId, PhysicalOperator child, CoordinationProtos.DrillbitEndpoint destination) Create a SingleSender which sends data to fragment identified by given MajorFragmentId and MinorFragmentId, and running at given endpointSingleSender
(int oppositeMajorFragmentId, PhysicalOperator child, CoordinationProtos.DrillbitEndpoint destination) Create a SingleSender which sends data to fragment with MinorFragmentId as 0 in given opposite major fragment. -
Method Summary
Modifier and TypeMethodDescription<T,
X, E extends Throwable>
Taccept
(PhysicalVisitor<T, X, E> physicalVisitor, X value) Provides capability to build a set of output based on traversing a query graph tree.Get the list of destination endpoints that this Sender will be communicating with.protected PhysicalOperator
getNewWithChild
(PhysicalOperator child) int
Methods inherited from class org.apache.drill.exec.physical.base.AbstractSender
getOppositeMajorFragmentId
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, getSVMode, getUserName, isBufferedOperator, isExecutable, setCost, setMaxAllocation, setOperatorId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.drill.common.graph.GraphValue
accept
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Methods inherited from interface org.apache.drill.exec.physical.base.PhysicalOperator
getCost, getInitialAllocation, getMaxAllocation, getNewWithChildren, getOperatorId, getSVMode, getUserName, isBufferedOperator, isExecutable, setCost, setMaxAllocation, setOperatorId
-
Field Details
-
OPERATOR_TYPE
- See Also:
-
-
Constructor Details
-
SingleSender
public SingleSender(int oppositeMajorFragmentId, int oppositeMinorFragmentId, PhysicalOperator child, CoordinationProtos.DrillbitEndpoint destination) Create a SingleSender which sends data to fragment identified by given MajorFragmentId and MinorFragmentId, and running at given endpoint- Parameters:
oppositeMajorFragmentId
- MajorFragmentId of the receiver fragment.oppositeMinorFragmentId
- MinorFragmentId of the receiver fragment.child
- Child operatordestination
- Drillbit endpoint where the receiver fragment is running.
-
SingleSender
public SingleSender(int oppositeMajorFragmentId, PhysicalOperator child, CoordinationProtos.DrillbitEndpoint destination) Create a SingleSender which sends data to fragment with MinorFragmentId as 0 in given opposite major fragment.- Parameters:
oppositeMajorFragmentId
- MajorFragmentId of the receiver fragment.child
- Child operatordestination
- Drillbit endpoint where the receiver fragment is running.
-
-
Method Details
-
getDestinations
Description copied from interface:Sender
Get the list of destination endpoints that this Sender will be communicating with.- Specified by:
getDestinations
in interfaceSender
- Overrides:
getDestinations
in classAbstractSender
- Returns:
- List of receiver MinorFragmentEndpoints each containing receiver fragment MinorFragmentId and endpoint where it is running.
-
getNewWithChild
- Specified by:
getNewWithChild
in classAbstractSingle
-
accept
public <T,X, T acceptE extends Throwable> (PhysicalVisitor<T, X, throws EE> physicalVisitor, X value) Description copied from interface:PhysicalOperator
Provides capability to build a set of output based on traversing a query graph tree.- Specified by:
accept
in interfacePhysicalOperator
- Overrides:
accept
in classAbstractSender
- Throws:
E extends Throwable
-
getDestination
-
getOppositeMinorFragmentId
public int getOppositeMinorFragmentId() -
getOperatorType
-