Class AbstractReceiver
java.lang.Object
org.apache.drill.exec.physical.base.AbstractBase
org.apache.drill.exec.physical.base.AbstractReceiver
- All Implemented Interfaces:
Iterable<PhysicalOperator>,GraphValue<PhysicalOperator>,FragmentLeaf,PhysicalOperator,Receiver
- Direct Known Subclasses:
MergingReceiverPOP,UnorderedReceiver
-
Field Summary
Fields inherited from class org.apache.drill.exec.physical.base.AbstractBase
INIT_ALLOCATION, initialAllocation, MAX_ALLOCATION, maxAllocation, userName -
Constructor Summary
ConstructorsConstructorDescriptionAbstractReceiver(int oppositeMajorFragmentId, List<MinorFragmentEndpoint> senders, boolean spooling) -
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.final PhysicalOperatorgetNewWithChildren(List<PhysicalOperator> children) Regenerate with this node with a new set of children.intintA receiver is expecting streams from one or more providing endpoints.booleaniterator()Methods 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, spliteratorMethods inherited from interface org.apache.drill.exec.physical.base.PhysicalOperator
getCost, getInitialAllocation, getMaxAllocation, getOperatorId, getOperatorType, getSVMode, getUserName, isBufferedOperator, isExecutable, setCost, setMaxAllocation, setOperatorIdMethods inherited from interface org.apache.drill.exec.physical.base.Receiver
supportsOutOfOrderExchange
-
Constructor Details
-
AbstractReceiver
public AbstractReceiver(int oppositeMajorFragmentId, List<MinorFragmentEndpoint> senders, boolean spooling) - Parameters:
oppositeMajorFragmentId- MajorFragmentId of fragments that are sending data to this receiver.senders- List of sender MinorFragmentEndpoints each containing sender MinorFragmentId and Drillbit endpoint where it is running.
-
-
Method Details
-
iterator
- Specified by:
iteratorin interfaceIterable<PhysicalOperator>
-
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
-
getNewWithChildren
Description copied from interface:PhysicalOperatorRegenerate with this node with a new set of children. This is used in the case of materialization or optimization.- Specified by:
getNewWithChildrenin interfacePhysicalOperator- Parameters:
children-
-
getOppositeMajorFragmentId
public int getOppositeMajorFragmentId()- Specified by:
getOppositeMajorFragmentIdin interfaceReceiver
-
getProvidingEndpoints
Description copied from interface:ReceiverA receiver is expecting streams from one or more providing endpoints.- Specified by:
getProvidingEndpointsin interfaceReceiver- Returns:
- List of sender MinorFragmentEndpoints each containing sender fragment MinorFragmentId and endpoint where it is running.
-
getNumSenders
public int getNumSenders() -
isSpooling
public boolean isSpooling()- Specified by:
isSpoolingin interfaceReceiver
-