public abstract class AbstractSender extends AbstractSingle implements Sender
Modifier and Type | Field and Description |
---|---|
protected List<MinorFragmentEndpoint> |
destinations |
protected int |
oppositeMajorFragmentId |
child
INIT_ALLOCATION, initialAllocation, MAX_ALLOCATION, maxAllocation, userName
Constructor and Description |
---|
AbstractSender(int oppositeMajorFragmentId,
PhysicalOperator child,
List<MinorFragmentEndpoint> destinations) |
Modifier and Type | Method and Description |
---|---|
<T,X,E extends Throwable> |
accept(PhysicalVisitor<T,X,E> physicalVisitor,
X value)
Provides capability to build a set of output based on traversing a query graph tree.
|
List<MinorFragmentEndpoint> |
getDestinations()
Get the list of destination endpoints that this Sender will be communicating with.
|
int |
getOppositeMajorFragmentId()
Get the receiver major fragment id that is opposite this sender.
|
getChild, getNewWithChild, getNewWithChildren, iterator
accept, getCost, getInitialAllocation, getMaxAllocation, getOperatorId, getSVMode, getUserName, isBufferedOperator, isExecutable, setCost, setMaxAllocation, setOperatorId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCost, getInitialAllocation, getMaxAllocation, getNewWithChildren, getOperatorId, getOperatorType, getSVMode, getUserName, isBufferedOperator, isExecutable, setCost, setMaxAllocation, setOperatorId
accept
forEach, iterator, spliterator
protected final int oppositeMajorFragmentId
protected final List<MinorFragmentEndpoint> destinations
public AbstractSender(int oppositeMajorFragmentId, PhysicalOperator child, List<MinorFragmentEndpoint> destinations)
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.public <T,X,E extends Throwable> T accept(PhysicalVisitor<T,X,E> physicalVisitor, X value) throws E extends Throwable
PhysicalOperator
accept
in interface PhysicalOperator
E extends Throwable
public int getOppositeMajorFragmentId()
Sender
getOppositeMajorFragmentId
in interface Sender
public List<MinorFragmentEndpoint> getDestinations()
Sender
getDestinations
in interface Sender
Copyright © 1970 The Apache Software Foundation. All rights reserved.