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
FieldsFields inherited from class org.apache.drill.exec.physical.base.AbstractSender
destinations, oppositeMajorFragmentIdFields 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
ConstructorsConstructorDescriptionSingleSender(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 PhysicalOperatorgetNewWithChild(PhysicalOperator child) intMethods inherited from class org.apache.drill.exec.physical.base.AbstractSender
getOppositeMajorFragmentIdMethods 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, getSVMode, getUserName, isBufferedOperator, isExecutable, setCost, setMaxAllocation, setOperatorIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.drill.common.graph.GraphValue
acceptMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods 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:SenderGet the list of destination endpoints that this Sender will be communicating with.- Specified by:
getDestinationsin interfaceSender- Overrides:
getDestinationsin classAbstractSender- Returns:
- List of receiver MinorFragmentEndpoints each containing receiver fragment MinorFragmentId and endpoint where it is running.
-
getNewWithChild
- Specified by:
getNewWithChildin classAbstractSingle
-
accept
public <T,X, T acceptE extends Throwable> (PhysicalVisitor<T, X, throws EE> physicalVisitor, X value) Description copied from interface:PhysicalOperatorProvides capability to build a set of output based on traversing a query graph tree.- Specified by:
acceptin interfacePhysicalOperator- Overrides:
acceptin classAbstractSender- Parameters:
physicalVisitor-- Throws:
E
-
getDestination
-
getOppositeMinorFragmentId
public int getOppositeMinorFragmentId() -
getOperatorType
-