Interface BlockAllocator.BatchGenerator
-
- Enclosing interface:
- BlockAllocator
public static interface BlockAllocator.BatchGeneratorUsed to generate a batch in a leak free way using the BlockAllocator to handle the boiler plate aspects of error detection and rollback.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.arrow.vector.ipc.message.ArrowRecordBatchgenerate(org.apache.arrow.memory.BufferAllocator allocator)When called by the BlockAllocator you can generate your batch.
-
-
-
Method Detail
-
generate
org.apache.arrow.vector.ipc.message.ArrowRecordBatch generate(org.apache.arrow.memory.BufferAllocator allocator) throws ExceptionWhen called by the BlockAllocator you can generate your batch.- Parameters:
allocator- A referrence to the BlockAllocator you can use to create your batch.- Returns:
- The resulting ArrowRecordBatch.
- Throws:
Exception
-
-