Package org.apache.drill.exec.work.batch
Class IncomingBuffers
java.lang.Object
org.apache.drill.exec.work.batch.IncomingBuffers
- All Implemented Interfaces:
AutoCloseable
Determines when a particular fragment has enough data for each of its receiving exchanges to commence execution. Also monitors whether we've collected all incoming data.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
batchArrived
(IncomingDataBatch incomingBatch) void
close()
getCollector
(int senderMajorFragmentId) int
boolean
isDone()
-
Constructor Details
-
IncomingBuffers
-
-
Method Details
-
batchArrived
public boolean batchArrived(IncomingDataBatch incomingBatch) throws FragmentSetupException, IOException - Throws:
FragmentSetupException
IOException
-
getRemainingRequired
public int getRemainingRequired() -
getCollector
-
isDone
public boolean isDone() -
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-