Class AbstractSender
java.lang.Object
org.apache.drill.exec.physical.base.AbstractBase
org.apache.drill.exec.physical.base.AbstractSingle
org.apache.drill.exec.physical.base.AbstractSender
- All Implemented Interfaces:
Iterable<PhysicalOperator>,GraphValue<PhysicalOperator>,FragmentLeaf,FragmentRoot,PhysicalOperator,Sender
- Direct Known Subclasses:
BroadcastSender,HashPartitionSender,OrderedPartitionSender,RangePartitionSender,SingleSender
-
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionAbstractSender(int oppositeMajorFragmentId, PhysicalOperator child, List<MinorFragmentEndpoint> destinations) -
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.intGet the receiver major fragment id that is opposite this sender.Methods inherited from class org.apache.drill.exec.physical.base.AbstractSingle
getChild, getNewWithChild, 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, getOperatorType, getSVMode, getUserName, isBufferedOperator, isExecutable, setCost, setMaxAllocation, setOperatorId
-
Field Details
-
oppositeMajorFragmentId
protected final int oppositeMajorFragmentId -
destinations
-
-
Constructor Details
-
AbstractSender
public AbstractSender(int oppositeMajorFragmentId, PhysicalOperator child, List<MinorFragmentEndpoint> destinations) - Parameters:
oppositeMajorFragmentId- MajorFragmentId of fragments that are receiving data sent by this sender.child- Child PhysicalOperator which is providing data to this Sender.destinations- List of receiver MinorFragmentEndpoints each containing MinorFragmentId and Drillbit endpoint where it is running.
-
-
Method Details
-
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- Parameters:
physicalVisitor-- Throws:
E
-
getOppositeMajorFragmentId
public int getOppositeMajorFragmentId()Description copied from interface:SenderGet the receiver major fragment id that is opposite this sender.- Specified by:
getOppositeMajorFragmentIdin interfaceSender- Returns:
- The receiver major fragment id that is opposite this sender.
-
getDestinations
Description copied from interface:SenderGet the list of destination endpoints that this Sender will be communicating with.- Specified by:
getDestinationsin interfaceSender- Returns:
- List of receiver MinorFragmentEndpoints each containing receiver fragment MinorFragmentId and endpoint where it is running.
-