public interface DataCollector extends AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
logger |
| Modifier and Type | Method and Description |
|---|---|
boolean |
batchArrived(int minorFragmentId,
RawFragmentBatch batch) |
void |
close() |
BufferAllocator |
getAllocator() |
RawBatchBuffer[] |
getBuffers() |
int |
getOppositeMajorFragmentId() |
int |
getTotalIncomingFragments() |
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.
|
boolean batchArrived(int minorFragmentId,
RawFragmentBatch batch)
throws IOException
IOExceptionint getOppositeMajorFragmentId()
RawBatchBuffer[] getBuffers()
int getTotalIncomingFragments()
void close()
throws Exception
close in interface AutoCloseableExceptionvoid setAllocator(BufferAllocator allocator)
allocator - operator buffer allocatorBufferAllocator getAllocator()
Copyright © 2021 The Apache Software Foundation. All rights reserved.