Interface BlockAllocator.BatchGenerator
-
- Enclosing interface:
- BlockAllocator
public static interface BlockAllocator.BatchGenerator
Used 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.ArrowRecordBatch
generate(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 Exception
When 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
-
-