If I have a VectorSchemaRoot that already contains data using the the Java Apache Arrow library, how would I go about copying that data to another VectorSchemaRoot?
If I have a VectorSchemaRoot that already contains data using the the Java Apache Arrow library, how would I go about copying that data to another VectorSchemaRoot?
What you most commonly would want to do is to create a TransferPair object for each Vector in the source VectorSchemaRoot, to transfer its buffers to new vectors in the second one.
In this case what you have, though, is not really a "copy" as the data is passed from one VSR to another, rather than copied. A typical use-case for this approach is using VectorSchemaRoots in a pipeline where they process data sequentially.
If you could say a bit more about what you're trying to accomplish I might be able to provide a better answer.