public class IncomingDataBatch extends Object
| Constructor and Description |
|---|
IncomingDataBatch(BitData.FragmentRecordBatch header,
DrillBuf body,
AckSender sender)
Create a new batch.
|
| Modifier and Type | Method and Description |
|---|---|
BitData.FragmentRecordBatch |
getHeader() |
RawFragmentBatch |
newRawFragmentBatch(BufferAllocator allocator)
Create a new RawFragmentBatch based on this incoming data batch that is transferred into the provided allocator.
|
public IncomingDataBatch(BitData.FragmentRecordBatch header, DrillBuf body, AckSender sender)
header - Batch headerbody - Data body. Could be null.sender - AckSender to use for underlying RawFragmentBatches.public RawFragmentBatch newRawFragmentBatch(BufferAllocator allocator)
allocator - Target allocator that should be associated with data underlying this batch.public BitData.FragmentRecordBatch getHeader()
Copyright © 2021 The Apache Software Foundation. All rights reserved.