Package org.apache.drill.exec.work.batch
Interface DataCollector
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
AbstractDataCollector
,MergingCollector
,PartitionedCollector
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
batchArrived
(int minorFragmentId, RawFragmentBatch batch) void
close()
int
int
void
setAllocator
(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:
close
in 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
-