use of org.apache.drill.exec.physical.impl.mergereceiver.MergingRecordBatch in project drill by apache.
the class MergingReceiverCreator method getBatch.
@Override
public MergingRecordBatch getBatch(FragmentContext context, MergingReceiverPOP receiver, List<RecordBatch> children) throws ExecutionSetupException, OutOfMemoryException {
assert children == null || children.isEmpty();
IncomingBuffers bufHolder = context.getBuffers();
assert bufHolder != null : "IncomingBuffers must be defined for any place a receiver is declared.";
RawBatchBuffer[] buffers = bufHolder.getBuffers(receiver.getOppositeMajorFragmentId());
return new MergingRecordBatch(context, receiver, buffers);
}
Aggregations