Commits


Matt Topol authored and GitHub committed 87b515e9207
GH-39771: [C++][Device] Generic CopyBatchTo/CopyArrayTo memory types (#39772) ### Rationale for this change Right now our MemoryManager interfaces operate solely at the buffer level and we do not provide any higher level facilities to copy an entire array or record batch between memory types. We should implement CopyArrayTo and CopyBatchTo functions which recursively utilize the buffer level copying to create a new Array/RecordBatch whose buffers have been copied to the destination memory manager. ### What changes are included in this PR? Exposing a `CopyArrayTo` and `CopyBatchTo` function for copying entire Array or RecordBatches between memory types. ### Are these changes tested? Tests are still being written but will be added. * Closes: #39771 Authored-by: Matt Topol <zotthewizard@gmail.com> Signed-off-by: Matt Topol <zotthewizard@gmail.com>