Package org.apache.drill.exec.work.batch
Interface DataCollector
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
AbstractDataCollector,MergingCollector,PartitionedCollector
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanbatchArrived(int minorFragmentId, RawFragmentBatch batch) voidclose()intintvoidsetAllocator(BufferAllocator allocator) Enables caller (e.g., receiver) to attach its buffer allocator to this Data Collector in order to claim ownership of incoming batches; by default, the fragment allocator owns these batches.
-
Field Details
-
logger
static final org.slf4j.Logger logger
-
-
Method Details
-
batchArrived
- Throws:
IOException
-
getOppositeMajorFragmentId
int getOppositeMajorFragmentId() -
getBuffers
RawBatchBuffer[] getBuffers() -
getTotalIncomingFragments
int getTotalIncomingFragments() -
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
setAllocator
Enables caller (e.g., receiver) to attach its buffer allocator to this Data Collector in order to claim ownership of incoming batches; by default, the fragment allocator owns these batches.- Parameters:
allocator- operator buffer allocator
-
getAllocator
BufferAllocator getAllocator()- Returns:
- allocator
-