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
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
ConstructorDescriptionAbstractSender
(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.int
Get the receiver major fragment id that is opposite this sender.Methods inherited from class org.apache.drill.exec.physical.base.AbstractSingle
getChild, getNewWithChild, 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, 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:PhysicalOperator
Provides capability to build a set of output based on traversing a query graph tree.- Specified by:
accept
in interfacePhysicalOperator
- Throws:
E extends Throwable
-
getOppositeMajorFragmentId
public int getOppositeMajorFragmentId()Description copied from interface:Sender
Get the receiver major fragment id that is opposite this sender.- Specified by:
getOppositeMajorFragmentId
in interfaceSender
- Returns:
- The receiver major fragment id that is opposite this sender.
-
getDestinations
Description copied from interface:Sender
Get the list of destination endpoints that this Sender will be communicating with.- Specified by:
getDestinations
in interfaceSender
- Returns:
- List of receiver MinorFragmentEndpoints each containing receiver fragment MinorFragmentId and endpoint where it is running.
-