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
ConstructorDescriptionAbstractReceiver
(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 PhysicalOperator
getNewWithChildren
(List<PhysicalOperator> children) Regenerate with this node with a new set of children.int
int
A receiver is expecting streams from one or more providing endpoints.boolean
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, spliterator
Methods inherited from interface org.apache.drill.exec.physical.base.PhysicalOperator
getCost, getInitialAllocation, getMaxAllocation, getOperatorId, getOperatorType, getSVMode, getUserName, isBufferedOperator, isExecutable, setCost, setMaxAllocation, setOperatorId
Methods 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:
iterator
in interfaceIterable<PhysicalOperator>
-
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
-
getNewWithChildren
Description copied from interface:PhysicalOperator
Regenerate with this node with a new set of children. This is used in the case of materialization or optimization.- Specified by:
getNewWithChildren
in interfacePhysicalOperator
-
getOppositeMajorFragmentId
public int getOppositeMajorFragmentId()- Specified by:
getOppositeMajorFragmentId
in interfaceReceiver
-
getProvidingEndpoints
Description copied from interface:Receiver
A receiver is expecting streams from one or more providing endpoints.- Specified by:
getProvidingEndpoints
in 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:
isSpooling
in interfaceReceiver
-